aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-12-12 16:31:29 -0500
committerShadowNinja <shadowninja@minetest.net>2014-12-12 16:32:11 -0500
commit8af9d8b6ac4ad39d06ff38db5d6dd37ce5dd58ab (patch)
treefbb63a06f065d6434453cbdbbddc07fdd5fbee5b /src
parent19ccc27d37ca3d0f7b71ed64a52c14b8d06630ae (diff)
downloadminetest-8af9d8b6ac4ad39d06ff38db5d6dd37ce5dd58ab.tar.gz
minetest-8af9d8b6ac4ad39d06ff38db5d6dd37ce5dd58ab.tar.bz2
minetest-8af9d8b6ac4ad39d06ff38db5d6dd37ce5dd58ab.zip
Fix missing call to std::ostringstream::str
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index d48231883..b401eb804 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2782,14 +2782,14 @@ void Client::makeScreenshot(IrrlichtDevice *device)
snprintf(filename, sizeof(filename), "%s" DIR_DELIM "screenshot_%u.png",
g_settings->get("screenshot_path").c_str(),
device->getTimer()->getRealTime());
- std::stringstream sstr;
+ std::ostringstream sstr;
if (driver->writeImageToFile(image, filename)) {
sstr << "Saved screenshot to '" << filename << "'";
} else {
sstr << "Failed to save screenshot '" << filename << "'";
}
m_chat_queue.push_back(narrow_to_wide(sstr.str()));
- infostream << sstr << std::endl;
+ infostream << sstr.str() << std::endl;
image->drop();
}
raw_image->drop();