diff options
author | lloyd <[email protected]> | 2007-07-21 19:35:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-07-21 19:35:10 +0000 |
commit | ad3c9c5a74be828440385f31c4b99affc3f33654 (patch) | |
tree | 77a0d026a9d79469fb0f3c26a430d165061ca9ad /src/pipe_rw.cpp | |
parent | 5ea451fc8db248c76fe68db87b9c76ffad019655 (diff) |
Use std::string::data() instead of std::string::c_str() in cases where we
just want access to the underlying data representation but don't care if
the return value is NULL terminated or not.
Diffstat (limited to 'src/pipe_rw.cpp')
-rw-r--r-- | src/pipe_rw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipe_rw.cpp b/src/pipe_rw.cpp index 85a027e1a..7a7e672fb 100644 --- a/src/pipe_rw.cpp +++ b/src/pipe_rw.cpp @@ -48,7 +48,7 @@ void Pipe::write(const MemoryRegion<byte>& input) *************************************************/ void Pipe::write(const std::string& str) { - write((const byte*)str.c_str(), str.size()); + write((const byte*)str.data(), str.size()); } /************************************************* |