diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-07 18:59:33 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-07 18:59:33 +0200 |
commit | f81aa4d723577ce30518424510e45ef39ff0e29e (patch) | |
tree | 78cca338cc651963d39640f485435e5ff362b84b /lib/jobs | |
parent | f7cbefe5ad626ae1798a5d7bb7546e89ad336acd (diff) | |
download | libquotient-f81aa4d723577ce30518424510e45ef39ff0e29e.tar.gz libquotient-f81aa4d723577ce30518424510e45ef39ff0e29e.zip |
Drop an out-of-date comment
BaseJob::loadFromJson() does just fine without QStringViews.
[skip ci]
Diffstat (limited to 'lib/jobs')
-rw-r--r-- | lib/jobs/basejob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h index d33d542e..7ce4b808 100644 --- a/lib/jobs/basejob.h +++ b/lib/jobs/basejob.h @@ -180,7 +180,7 @@ public: * If there's no top-level JSON object in the response or if there's * no node with the key \p keyName, \p defaultValue is returned. */ - template <typename T, typename StrT> // Waiting for QStringViews... + template <typename T, typename StrT> T loadFromJson(const StrT& keyName, T&& defaultValue = {}) const { const auto& jv = jsonData().value(keyName); |