]> git.sesse.net Git - casparcg/blobdiff - core/consumer/syncto/syncto_consumer.cpp
Remove most of boost::lexical_cast.
[casparcg] / core / consumer / syncto / syncto_consumer.cpp
index 632bdb0845c6b78b3840ddfbaf351b98d6fbc716..b869b5135789b7559c1cf17fbed6e283d54aeaab 100644 (file)
@@ -33,7 +33,6 @@
 
 #include <common/semaphore.h>
 
-#include <boost/lexical_cast.hpp>
 #include <boost/property_tree/ptree.hpp>
 
 #include <future>
@@ -86,9 +85,9 @@ public:
        std::wstring print() const override
        {
                if (self_channel_index_ != -1)
-                       return L"sync[" + boost::lexical_cast<std::wstring>(self_channel_index_) + L"]to[" + boost::lexical_cast<std::wstring>(other_channel_->index()) + L"]";
+                       return L"sync[" + std::to_wstring(self_channel_index_) + L"]to[" + std::to_wstring(other_channel_->index()) + L"]";
                else
-                       return L"syncto[" + boost::lexical_cast<std::wstring>(other_channel_->index()) + L"]";
+                       return L"syncto[" + std::to_wstring(other_channel_->index()) + L"]";
        }
 
        std::wstring name() const override
@@ -163,7 +162,7 @@ spl::shared_ptr<core::frame_consumer> create_consumer(
        if (params.size() < 1 || !boost::iequals(params.at(0), L"SYNCTO"))
                return core::frame_consumer::empty();
 
-       auto channel_id = boost::lexical_cast<int>(params.at(1));
+       auto channel_id = std::stoi(params.at(1));
        auto channel    = channels.at(channel_id - 1);
 
        return spl::make_shared<syncto_consumer>(channel);