Fix / ignore some clang-tidy warnings.

This commit is contained in:
tastytea 2020-01-08 17:38:27 +01:00
parent 577c252b42
commit 4b118e75f1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
4 changed files with 5 additions and 4 deletions

View File

@ -104,7 +104,7 @@ public:
* Sets also the proxy for the Instance you used to initialize this
* Connection.
*/
void set_proxy(const string_view proxy);
void set_proxy(string_view proxy);
private:
Instance &_instance;

View File

@ -137,7 +137,7 @@ public:
*
* @since 0.1.0
*/
void set_proxy(const string_view proxy);
void set_proxy(string_view proxy);
protected:
/*!

View File

@ -50,8 +50,7 @@ public:
*
* @since 0.1.0
*/
explicit Instance(const string_view hostname,
const string_view access_token);
explicit Instance(string_view hostname, string_view access_token);
/*!
* @brief Returns the hostname.

View File

@ -23,6 +23,8 @@ API::API(const endpoint_type &endpoint)
: _endpoint{endpoint}
{}
// TODO: look for a better way.
// NOLINTNEXTLINE(cert-err58-cpp)
const map<API::endpoint_type,string_view> API::_endpoint_map
{
{v1::apps, "/api/v1/apps"},