From: ShadowNinja Date: Fri, 12 Dec 2014 21:31:29 +0000 (-0500) Subject: Fix missing call to std::ostringstream::str X-Git-Tag: 0.4.11~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8af9d8b6ac4ad39d06ff38db5d6dd37ce5dd58ab;p=oweals%2Fminetest.git Fix missing call to std::ostringstream::str --- 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();