Skip to content

Commit 95b3a8d

Browse files
authored
Refactor req() function declaration in auth.hpp for consistency
Updated `req()` function declaration in `auth.hpp` to use `const std::string&` for parameters.
1 parent dc38e5e commit 95b3a8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

auth.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,10 @@ namespace KeyAuth {
105105
responsedata response;
106106
Tfa tfa;
107107
private:
108-
std::string sessionid, enckey;
109-
110-
static std::string req(std::string data, std::string url);
111108

109+
std::string sessionid, enckey;
110+
static std::string req(const std::string& data, const std::string& url);
112111
static void debugInfo(std::string data, std::string url, std::string response, std::string headers);
113-
114112
static void setDebug(bool value);
115113

116114

0 commit comments

Comments
 (0)