diff options
author | Youri Mouton <[email protected]> | 2016-06-16 12:00:04 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2016-06-20 22:18:11 +0300 |
commit | 8bd070a19b13c9830b3be7700cf55e7845c98642 (patch) | |
tree | 828ccbb635cc252b7efc945bb9a5d846d22d2cf6 /src/lsof.cpp | |
parent | 948e31c57192de7eb82f34eb19dd9d9bd6510c0c (diff) | |
download | mate-system-monitor-8bd070a19b13c9830b3be7700cf55e7845c98642.tar.bz2 mate-system-monitor-8bd070a19b13c9830b3be7700cf55e7845c98642.tar.xz |
Casting temporaries to references is not valid.
Diffstat (limited to 'src/lsof.cpp')
-rw-r--r-- | src/lsof.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lsof.cpp b/src/lsof.cpp index 25cc3c4..0a11c0a 100644 --- a/src/lsof.cpp +++ b/src/lsof.cpp @@ -137,7 +137,9 @@ namespace void update_count(unsigned count) { - string s = static_cast<std::ostringstream&>(std::ostringstream() << count).str(); + std::ostringstream ss; + ss << count; + string s = ss.str(); gtk_label_set_text(this->count, s.c_str()); } |