Skip to content

Commit

Permalink
avoid irrelevant c_str()
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Dreik authored and pauldreik committed Jan 12, 2025
1 parent 64a6725 commit 1acbf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fileinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Fileinfo::fillwithbytes(enum readtobuffermode filltype,
m_somebytes.fill('\0');

std::fstream f1;
f1.open(m_filename.c_str(), std::ios_base::in);
f1.open(m_filename, std::ios_base::in);
if (!f1.is_open()) {
std::cerr << "fillwithbytes.cc: Could not open file \"" << m_filename
<< "\"" << std::endl;
Expand Down

0 comments on commit 1acbf12

Please sign in to comment.