summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYouri Mouton <[email protected]>2016-06-16 12:00:04 +0200
committermonsta <[email protected]>2016-06-20 22:18:11 +0300
commit8bd070a19b13c9830b3be7700cf55e7845c98642 (patch)
tree828ccbb635cc252b7efc945bb9a5d846d22d2cf6 /src
parent948e31c57192de7eb82f34eb19dd9d9bd6510c0c (diff)
downloadmate-system-monitor-8bd070a19b13c9830b3be7700cf55e7845c98642.tar.bz2
mate-system-monitor-8bd070a19b13c9830b3be7700cf55e7845c98642.tar.xz
Casting temporaries to references is not valid.
Diffstat (limited to 'src')
-rw-r--r--src/lsof.cpp4
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());
}