diff options
author | tastytea | 2020-01-24 22:05:47 +0100 |
---|---|---|
committer | tastytea | 2020-01-24 22:06:47 +0100 |
commit | 02a22d773cf54228d502fc779cd9f31f1c297e9c (patch) | |
tree | 44a8bf59e0133cac6d9fe390360435f9680f0039 | |
parent | bb088e6d70fe2e524c104578d1d1d5216d81641c (diff) | |
download | mastodonpp-02a22d773cf54228d502fc779cd9f31f1c297e9c.tar mastodonpp-02a22d773cf54228d502fc779cd9f31f1c297e9c.tar.gz mastodonpp-02a22d773cf54228d502fc779cd9f31f1c297e9c.zip |
Make set_proxy(), set_cainfo(), set_useragent() virtual.
-rw-r--r-- | include/curl_wrapper.hpp | 6 | ||||
-rw-r--r-- | include/instance.hpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/curl_wrapper.hpp b/include/curl_wrapper.hpp index c5e807f..0088197 100644 --- a/include/curl_wrapper.hpp +++ b/include/curl_wrapper.hpp @@ -222,7 +222,7 @@ protected: * * @since 0.1.0 */ - void set_proxy(string_view proxy); + virtual void set_proxy(string_view proxy); /*! * @brief Set OAuth 2.0 Bearer Access Token. @@ -237,14 +237,14 @@ protected: * * @since 0.3.0 */ - void set_cainfo(string_view path); + virtual void set_cainfo(string_view path); /*! * @brief Sets the User-Agent. * * @since 0.3.0 */ - void set_useragent(string_view useragent); + virtual void set_useragent(string_view useragent); private: CURL *_connection; diff --git a/include/instance.hpp b/include/instance.hpp index ca1cfe5..225f106 100644 --- a/include/instance.hpp +++ b/include/instance.hpp @@ -148,7 +148,7 @@ public: * Sets also the proxy for all Connection%s that are initialized with this * Instance afterwards. */ - void set_proxy(const string_view proxy) + void set_proxy(const string_view proxy) override { _proxy = proxy; CURLWrapper::set_proxy(proxy); @@ -187,7 +187,7 @@ public: * * @since 0.3.0 */ - void set_cainfo(string_view path) + void set_cainfo(string_view path) override { _cainfo = path; CURLWrapper::set_cainfo(path); @@ -201,7 +201,7 @@ public: * * @since 0.3.0 */ - void set_useragent(const string_view useragent) + void set_useragent(const string_view useragent) override { _useragent = useragent; CURLWrapper::set_useragent(useragent); |