]> git.sesse.net Git - casparcg/blobdiff - core/producer/scene/xml_scene_producer.cpp
Remove most of boost::lexical_cast.
[casparcg] / core / producer / scene / xml_scene_producer.cpp
index 5e5231ba6aceb551e5cc84b04830ccc48b0ee7e6..e3d427725e63eb4ebd9805af31f782169506d988 100644 (file)
@@ -255,7 +255,7 @@ spl::shared_ptr<core::frame_producer> create_xml_scene_producer(
                                auto easing     = k.second.get(L"<xmlattr>.easing", L"");
                                auto at         = ptree_get<int64_t>(k.second, L"<xmlattr>.at");
 
-                               auto keyframe_variable_name = L"timeline." + variable_name + L"." + boost::lexical_cast<std::wstring>(at);
+                               auto keyframe_variable_name = L"timeline." + variable_name + L"." + std::to_wstring(at);
 
                                if (variable.is<double>())
                                        scene->add_keyframe(variable.as<double>(), scene->create_variable<double>(keyframe_variable_name, false, ptree_get_value<std::wstring>(k.second)), at, easing);
@@ -283,7 +283,7 @@ spl::shared_ptr<core::frame_producer> create_xml_scene_producer(
                        if (at_frame)
                                condition = scene->timeline_frame() == *at_frame;
                        else if (when)
-                               condition = scene->create_variable<bool>(L"tasks.task_" + boost::lexical_cast<std::wstring>(task_id), false, *when);
+                               condition = scene->create_variable<bool>(L"tasks.task_" + std::to_wstring(task_id), false, *when);
                        else
                                CASPAR_THROW_EXCEPTION(user_error() << msg_info(L"Task elements must have either an at attribute or a when attribute"));