diff options
author | timoreo <contact@timoreo.fr> | 2022-09-26 11:50:31 +0200 |
---|---|---|
committer | timoreo <contact@timoreo.fr> | 2022-09-26 11:50:31 +0200 |
commit | 9ff364b0d3c12f9138037cce585c03c850721b82 (patch) | |
tree | 3404fb8ba162275b8eac6678c12832c3ec2a0936 /launcher/InstanceList.h | |
parent | 4f6d964217f6addd4f29969168a7d40ed4729dde (diff) | |
download | PrismLauncher-9ff364b0d3c12f9138037cce585c03c850721b82.tar.gz PrismLauncher-9ff364b0d3c12f9138037cce585c03c850721b82.tar.bz2 PrismLauncher-9ff364b0d3c12f9138037cce585c03c850721b82.zip |
huge nit: added const refs, everywhere
Signed-off-by: timoreo <contact@timoreo.fr>
Diffstat (limited to 'launcher/InstanceList.h')
-rw-r--r-- | launcher/InstanceList.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/InstanceList.h b/launcher/InstanceList.h index df11b55a..3673298f 100644 --- a/launcher/InstanceList.h +++ b/launcher/InstanceList.h @@ -104,7 +104,7 @@ public: /* O(n) */ InstancePtr getInstanceById(QString id) const; /* O(n) */ - InstancePtr getInstanceByManagedName(QString managed_name) const; + InstancePtr getInstanceByManagedName(const QString& managed_name) const; QModelIndex getInstanceIndexById(const QString &id) const; QStringList getGroups(); bool isGroupCollapsed(const QString &groupName); @@ -133,7 +133,7 @@ public: * should_override is used when another similar instance already exists, and we want to override it * - for instance, when updating it. */ - bool commitStagedInstance(QString keyPath, const InstanceName& instanceName, QString groupName, bool should_override); + bool commitStagedInstance(const QString& keyPath, const InstanceName& instanceName, const QString& groupName, bool should_override); /** * Destroy a previously created staging area given by @keyPath - used when creation fails. |