Fix missing call to std::ostringstream::str
authorShadowNinja <shadowninja@minetest.net>
Fri, 12 Dec 2014 21:31:29 +0000 (16:31 -0500)
committerShadowNinja <shadowninja@minetest.net>
Fri, 12 Dec 2014 21:32:11 +0000 (16:32 -0500)
src/client.cpp

index d48231883f03c842d3a4a694955be626220c1278..b401eb8045b3527df74407b1121012cc45998019 100644 (file)
@@ -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();