aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceList.h
diff options
context:
space:
mode:
authortimoreo <contact@timoreo.fr>2022-09-26 11:50:31 +0200
committertimoreo <contact@timoreo.fr>2022-09-26 11:50:31 +0200
commit9ff364b0d3c12f9138037cce585c03c850721b82 (patch)
tree3404fb8ba162275b8eac6678c12832c3ec2a0936 /launcher/InstanceList.h
parent4f6d964217f6addd4f29969168a7d40ed4729dde (diff)
downloadPrismLauncher-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.h4
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.