Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / frame_rate_change.cc
index e16aad072473edc2205d40d98ad77f2421093d97..7b6d1389274832dc6d86a508bdc15062432db84c 100644 (file)
@@ -28,7 +28,7 @@
 #include "i18n.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static bool
 about_equal (double a, double b)
@@ -110,7 +110,9 @@ FrameRateChange::description () const
 
                if (change_speed) {
                        double const pc = dcp * 100 / (source * factor());
-                       description += String::compose (_("DCP will run at %1%% of the content speed.\n"), pc);
+                       char buffer[256];
+                       snprintf (buffer, sizeof(buffer), _("DCP will run at %.1f%% of the content speed.\n"), pc);
+                       description += buffer;
                }
        }