Make set_proxy(), set_cainfo(), set_useragent() virtual.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tastytea 2020-01-24 22:05:47 +01:00
parent bb088e6d70
commit 02a22d773c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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);