diff --git a/cmake/scripts/resource.hpp.in b/cmake/scripts/resource.hpp.in index a8bbca377..6a9740616 100644 --- a/cmake/scripts/resource.hpp.in +++ b/cmake/scripts/resource.hpp.in @@ -2,7 +2,6 @@ #pragma once #include -#include #include namespace dev @@ -19,12 +18,7 @@ ${ETH_RESULT_DATA} ${ETH_RESULT_INIT} } - std::string loadResourceAsString(std::string _name) - { - std::ostringstream bistream; - bistream.write(m_resources[_name], m_sizes[_name]); - return bistream.str(); - } + std::string loadResourceAsString(std::string _name) { return std::string(m_resources[_name], m_sizes[_name]); } private: std::map m_resources;