]> git.sesse.net Git - casparcg/blobdiff - core/producer/scene/scene_producer.cpp
Remove most of boost::lexical_cast.
[casparcg] / core / producer / scene / scene_producer.cpp
index b6339e85af612f96f52ec2967cea141b074a1404..fdc595b15ac2795060e1ef516955497b21dcfe89 100644 (file)
@@ -176,7 +176,7 @@ struct scene_producer::impl
                frame_number_ = frame_variable->value();
 
                auto fps = format_desc_.fps * format_desc_.field_count;
-               auto fps_variable = std::make_shared<core::variable_impl<double>>(boost::lexical_cast<std::wstring>(fps), false, fps);
+               auto fps_variable = std::make_shared<core::variable_impl<double>>(std::to_wstring(fps), false, fps);
                store_variable(L"fps", fps_variable);
 
                auto timeline_frame_variable = std::make_shared<core::variable_impl<int64_t>>(L"-1", false, -1);
@@ -192,8 +192,8 @@ struct scene_producer::impl
                m_x_ = 0;
                m_y_ = 0;
 
-               auto scene_width = std::make_shared<core::variable_impl<double>>(boost::lexical_cast<std::wstring>(width), false, width);
-               auto scene_height = std::make_shared<core::variable_impl<double>>(boost::lexical_cast<std::wstring>(height), false, height);
+               auto scene_width = std::make_shared<core::variable_impl<double>>(std::to_wstring(width), false, width);
+               auto scene_height = std::make_shared<core::variable_impl<double>>(std::to_wstring(height), false, height);
                store_variable(L"scene_width", scene_width);
                store_variable(L"scene_height", scene_height);
                pixel_constraints_.width = scene_width->value();