Merge master.
[dcpomatic.git] / src / tools / dcpomatic.cc
index e67703b22fe34a69b544a34b660c74f693e39ca8..8c7f09ae77de6fd4e8344ca12f3a528617991a6a 100644 (file)
@@ -338,13 +338,12 @@ private:
 
        void file_changed (boost::filesystem::path f)
        {
-               stringstream s;
-               s << wx_to_std (_("DCP-o-matic"));
+               string s = wx_to_std (_("DCP-o-matic"));
                if (!f.empty ()) {
-                       s << " - " << f.string ();
+                       s += " - " + f.string ();
                }
                
-               SetTitle (std_to_wx (s.str()));
+               SetTitle (std_to_wx (s));
        }
        
        void file_new ()