Commit 5e05cf4f authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

More const ref with args with non-trivial types

parent 93cb30d7
......@@ -198,7 +198,7 @@ struct DisableMainWindowUpdatesFromArea
QSet<Sublime::MainWindow*> wasUpdatesEnabled;
void loadFileList(QStringList& ret, KConfigGroup group)
void loadFileList(QStringList& ret, const KConfigGroup& group)
if (group.hasKey("Orientation")) {
QStringList subgroups = group.groupList();
......@@ -51,7 +51,7 @@ static QPointer<CustomScriptPlugin> indentPluginSingleton;
K_PLUGIN_FACTORY_WITH_JSON(CustomScriptFactory, "kdevcustomscript.json", registerPlugin<CustomScriptPlugin>(); )
// Replaces ${KEY} in command with variables[KEY]
static QString replaceVariables(QString command, QMap<QString, QString> variables)
static QString replaceVariables(QString command, const QMap<QString, QString>& variables)
while (command.contains(QLatin1String("${"))) {
int pos = command.indexOf(QLatin1String("${"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment