mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Fix missing inline keyword
This commit is contained in:
@@ -438,7 +438,7 @@ namespace openvpn {
|
|||||||
* exception on parsing errors.
|
* exception on parsing errors.
|
||||||
*/
|
*/
|
||||||
template <typename T>
|
template <typename T>
|
||||||
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)];
|
unsigned char buf[sizeof(T)];
|
||||||
for (size_t i = sizeof(T); i --> 0 ;)
|
for (size_t i = sizeof(T); i --> 0 ;)
|
||||||
@@ -461,7 +461,7 @@ namespace openvpn {
|
|||||||
* of the input value. The result will always contain only
|
* of the input value. The result will always contain only
|
||||||
* two characters.
|
* 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);
|
RenderHexByte b(uc, caps);
|
||||||
return std::string(b.str2(), 2);
|
return std::string(b.str2(), 2);
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ namespace openvpn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// return the first line (without newline) of a multi-line string
|
// 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');
|
const size_t pos = str.find_first_of('\n');
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
|
|||||||
Reference in New Issue
Block a user