diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2021-06-08 10:31:05 +0100 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2021-10-04 10:08:58 +0200 |
commit | 7ecf145707f4ec7916abeaf346c2612d218ee640 (patch) | |
tree | a008526a9a9e8c273c20b217971dcfbf06c00b20 /wsd | |
parent | annotation: fix vex dialog losing focus on comment insert (diff) | |
download | online-7ecf145707f4ec7916abeaf346c2612d218ee640.tar.gz online-7ecf145707f4ec7916abeaf346c2612d218ee640.zip |
WaE: avoid reference to temporary std::string.
Change-Id: Id13b3e3986db9f1c6fb66eb8d3c3f3e4942e3e06
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'wsd')
-rw-r--r-- | wsd/ClientSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp index b948646ed4..79dd35fa19 100644 --- a/wsd/ClientSession.cpp +++ b/wsd/ClientSession.cpp @@ -501,7 +501,7 @@ bool ClientSession::_handleInput(const char *buffer, int length) if (tokens.size() >= 4) { std::string timestamp = tokens[2]; - const char* str = timestamp.data(); + const char* str = timestamp.c_str(); char* endptr = nullptr; uint64_t ts = strtoull(str, &endptr, 10); if (*endptr == '\0') |