Skip to content

Commit

Permalink
Fix kstream constructor which uses std::string for initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Nagorny authored and generalmimon committed Jun 14, 2021
1 parent 1cb6f7c commit 71c9929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kaitai/kaitaistream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ kaitai::kstream::kstream(std::istream* io) {
init();
}

kaitai::kstream::kstream(std::string& data): m_io_str(data) {
kaitai::kstream::kstream(const std::string& data): m_io_str(data) {
m_io = &m_io_str;
init();
}
Expand Down
2 changes: 1 addition & 1 deletion kaitai/kaitaistream.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class kstream {
* buffer.
* \param data data buffer to use for this Kaitai Stream
*/
kstream(std::string& data);
kstream(const std::string& data);

void close();

Expand Down

0 comments on commit 71c9929

Please sign in to comment.