diff options
Diffstat (limited to 'src/api.cpp')
-rw-r--r-- | src/api.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/api.cpp b/src/api.cpp index 30a11b9..5168e83 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -17,21 +17,18 @@ #include "api.hpp" #include <map> -#include <string_view> -#include <utility> namespace mastodonpp { using std::map; using std::string_view; -using std::move; -API::API(endpoint_type &endpoint) - : _endpoint{move(endpoint)} +API::API(const endpoint_type &endpoint) + : _endpoint{endpoint} {} -string API::to_string() const +string_view API::to_string_view() const { static const map<endpoint_type,string_view> endpoint_map { |