Try to fix some warnings.
[dcpomatic.git] / src / lib / video_content_scale.cc
index a1673d3deafc58ae84950eec58314783eaf14ac4..636f0e807413972d7fa5cb1ea8161e755bd4fb7a 100644 (file)
@@ -21,7 +21,6 @@
 #include "video_content_scale.h"
 #include "video_content.h"
 #include "ratio.h"
-#include "safe_stringstream.h"
 #include "util.h"
 #include <libcxml/cxml.h>
 #include <libxml++/libxml++.h>
@@ -85,22 +84,18 @@ VideoContentScale::as_xml (xmlpp::Node* node) const
 string
 VideoContentScale::id () const
 {
-       SafeStringStream s;
-
        if (_ratio) {
-               s << _ratio->id ();
-       } else {
-               s << (_scale ? "S1" : "S0");
+               return _ratio->id ();
        }
 
-       return s.str ();
+       return (_scale ? "S1" : "S0");
 }
 
 string
 VideoContentScale::name () const
 {
        if (_ratio) {
-               return _ratio->nickname ();
+               return _ratio->image_nickname ();
        }
 
        if (_scale) {