diff options
Diffstat (limited to 'gr-fec/lib/ldpc_par_chk_mtrx.cc')
-rw-r--r-- | gr-fec/lib/ldpc_par_chk_mtrx.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-fec/lib/ldpc_par_chk_mtrx.cc b/gr-fec/lib/ldpc_par_chk_mtrx.cc index 3045b15611..56c14d6d0c 100644 --- a/gr-fec/lib/ldpc_par_chk_mtrx.cc +++ b/gr-fec/lib/ldpc_par_chk_mtrx.cc @@ -32,9 +32,9 @@ namespace gr { namespace fec { namespace code { - ldpc_par_chk_mtrx::ldpc_par_chk_mtrx(const std::string &filename, unsigned int gap) + ldpc_par_chk_mtrx::ldpc_par_chk_mtrx(const std::string filename, unsigned int gap) { - read_matrix_from_file(&filename); + read_matrix_from_file(filename); d_gap = gap; set_parameters_for_encoding(); } // Constructor @@ -110,7 +110,7 @@ namespace gr { } void - ldpc_par_chk_mtrx::read_matrix_from_file(const std::string *alist_file) + ldpc_par_chk_mtrx::read_matrix_from_file(const std::string filename) { /* This function reads in an alist file and creates the corresponding parity check matrix. The format of alist @@ -120,10 +120,10 @@ namespace gr { std::ifstream inputFile; // Open the alist file (needs a C-string) - inputFile.open((*alist_file).c_str()); + inputFile.open((filename).c_str()); if (!inputFile) { std::cout << "There was a problem opening file " - << *alist_file << " for reading.\n"; + << filename << " for reading.\n"; exit(1); } |