summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/instance.hpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/include/instance.hpp b/include/instance.hpp
index fb85a03..214be77 100644
--- a/include/instance.hpp
+++ b/include/instance.hpp
@@ -57,20 +57,14 @@ public:
*
* @since 0.1.0
*/
- explicit Instance(const string_view hostname,
- const string_view access_token)
- : _hostname{hostname}
- , _baseuri{"https://" + _hostname}
- , _access_token{access_token}
- , _max_chars{0}
- {}
+ explicit Instance(string_view hostname, string_view access_token);
/*!
* @brief Copy constructor. A new CURLWrapper is constructed.
*
* @since 0.5.2
*/
- Instance(const Instance &other) = default;
+ Instance(const Instance &other);
//! Move constructor
Instance(Instance &&other) noexcept = delete;
@@ -143,9 +137,10 @@ public:
*
* @since 0.1.0
*/
- inline void set_access_token(string access_token)
+ inline void set_access_token(const string_view access_token)
{
- _access_token = move(access_token);
+ _access_token = access_token;
+ CURLWrapper::set_access_token(access_token);
}
/*!