summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());
}