File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/signaling_device/include/nabto/webrtc Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ endif()
1818if (version_out)
1919 set (VERSION "#include <nabto/webrtc/device.hpp>\n
2020#include <string>\n
21- static const std::string version_str = \" ${version_out} \"\n ;
22- const std::string nabto::webrtc::SignalingDevice::version() { return version_str; }\n " )
21+ #include <array>\n
22+ constexpr std::array<char, 100> version_str {\" ${version_out} \" };
23+ std::string nabto::webrtc::SignalingDevice::version() { return {std::begin(version_str),std::end(version_str)}; }\n " )
2324
2425 if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /src/version .cpp)
2526 file (READ ${CMAKE_CURRENT_SOURCE_DIR} /src/version .cpp VERSION_)
Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ class SignalingDevice {
623623 *
624624 * @returns String representation of the library version
625625 */
626- static const std::string version ();
626+ static std::string version ();
627627};
628628
629629/* *
You can’t perform that action at this time.
0 commit comments