From f920a3b01746a183de6110f158e19b59af4b2ef0 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Tue, 20 Aug 2024 16:59:26 +0200 Subject: I literally don't know why this was static --- modules/codec/c++/base64.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codec/c++/base64.hpp b/modules/codec/c++/base64.hpp index 56ba79e..89e2b48 100644 --- a/modules/codec/c++/base64.hpp +++ b/modules/codec/c++/base64.hpp @@ -67,7 +67,7 @@ private: } public: template - static error_or encode(const data& from, data& to){ + error_or encode(const data& from, data& to){ std::string b64_str; try { @@ -114,7 +114,7 @@ public: } template - static error_or decode(data& from, data& to){ + error_or decode(data& from, data& to){ uint64_t b64_len = from.size(); if((b64_len % 4) != 0){ return make_error("Base64 String is not padded"); @@ -126,7 +126,7 @@ public: std::string to_str; for(uint64_t i = 0u; i < b64_len && from.at(i) != '='; ++i){ - auto eo_pos = find_base64_char_pos(from.at(i)); + auto eo_pos = this->find_base64_char_pos(from.at(i)); if(eo_pos.is_error()){ return std::move(eo_pos.get_error()); } -- cgit v1.2.3