From be94a0c597f0d8350accd1cd105b5088ec4f2eee Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Fri, 27 Jul 2018 18:25:06 +0300 Subject: [PATCH] Fix missing inline keyword --- .../Libraries/Vendors/openvpn/openvpn/common/hexstr.hpp | 6 +++--- .../Libraries/Vendors/openvpn/openvpn/common/string.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/hexstr.hpp b/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/hexstr.hpp index 1d69ccc..22fa166 100644 --- a/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/hexstr.hpp +++ b/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/hexstr.hpp @@ -343,7 +343,7 @@ namespace openvpn { dest.push_back((high<<4) + low); } if (i != len) - throw parse_hex_error(); // straggler char + throw parse_hex_error(); // straggler char } @@ -438,7 +438,7 @@ namespace openvpn { * exception on parsing errors. */ template - std::string render_hex_number(T value, const bool caps=false) + inline std::string render_hex_number(T value, const bool caps=false) { unsigned char buf[sizeof(T)]; for (size_t i = sizeof(T); i --> 0 ;) @@ -461,7 +461,7 @@ namespace openvpn { * of the input value. The result will always contain only * two characters. */ - std::string render_hex_number(unsigned char uc, const bool caps=false) + inline std::string render_hex_number(unsigned char uc, const bool caps=false) { RenderHexByte b(uc, caps); return std::string(b.str2(), 2); diff --git a/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/string.hpp b/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/string.hpp index 7fa386a..bf6e56d 100644 --- a/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/string.hpp +++ b/Sources/OpenVPNAdapter/Libraries/Vendors/openvpn/openvpn/common/string.hpp @@ -223,7 +223,7 @@ namespace openvpn { } // return the first line (without newline) of a multi-line string - std::string first_line(const std::string& str) + inline std::string first_line(const std::string& str) { const size_t pos = str.find_first_of('\n'); if (pos != std::string::npos)