aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 13:54:23 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 13:54:23 +0200
commitf6faea5971d94627da67dc1442504da07374958d (patch)
tree7d4304aa6a8af0c9c0f69ef45101bead40f4c5c4
parentcf960897089289656fc0f5d9a7d3d1242565b16f (diff)
downloadlibquotient-f6faea5971d94627da67dc1442504da07374958d.tar.gz
libquotient-f6faea5971d94627da67dc1442504da07374958d.zip
AccountSettins: use perfect forwarding
-rw-r--r--lib/settings.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/settings.h b/lib/settings.h
index 5a097285..c45764a6 100644
--- a/lib/settings.h
+++ b/lib/settings.h
@@ -25,6 +25,7 @@
class QVariant;
namespace Quotient {
+
class Settings : public QSettings {
Q_OBJECT
public:
@@ -151,8 +152,9 @@ class AccountSettings : public SettingsGroup {
WRITE setEncryptionAccountPickle)
public:
template <typename... ArgTs>
- explicit AccountSettings(const QString& accountId, ArgTs... qsettingsArgs)
- : SettingsGroup("Accounts/" + accountId, qsettingsArgs...)
+ explicit AccountSettings(const QString& accountId, ArgTs&&... qsettingsArgs)
+ : SettingsGroup("Accounts/" + accountId,
+ std::forward<ArgTs>(qsettingsArgs)...)
{}
QString userId() const;