Browse Source

[cppcheck] chunk: Pass strign by reference

coverity_scan^2
Daniel Scharrer 8 years ago
parent
commit
9ce544f087
  1. 2
      src/stream/chunk.hpp

2
src/stream/chunk.hpp

@ -47,7 +47,7 @@ class slice_reader;
//! Error thrown by \ref chunk_reader::get if there was a problem.
struct chunk_error : public std::ios_base::failure {
explicit chunk_error(std::string msg) : std::ios_base::failure(msg) { }
explicit chunk_error(const std::string & msg) : std::ios_base::failure(msg) { }
};

Loading…
Cancel
Save