Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix coding style in KisOpenPane

Dmitry Kazakov6474c835e468
diff --git a/libs/ui/KisOpenPane.cpp b/libs/ui/KisOpenPane.cpp
index 901b0dd917..1993c80267 100644
--- a/libs/ui/KisOpenPane.cpp
+++ b/libs/ui/KisOpenPane.cpp
@@ -290,7 +290,7 @@ void KisOpenPane::addCustomDocumentWidget(QWidget *widget, const QString& title,
}
}
-bool KisOpenPane::selectItem(const QString name)
+bool KisOpenPane::selectItem(const QString &name)
{
QTreeWidgetItem* item = d->m_itemMap->value(name, nullptr);
if (!item) return false;
diff --git a/libs/ui/KisOpenPane.h b/libs/ui/KisOpenPane.h
index 985d27e14f..bc24fc3f2d 100644
--- a/libs/ui/KisOpenPane.h
+++ b/libs/ui/KisOpenPane.h
@@ -51,7 +51,7 @@ public:
//For some reason this only works with custom widgets, since all templates seem to just be named "Template"
/// Selects an option out of the dialog based on its untranslated name
- bool selectItem(const QString name);
+ bool selectItem(const QString &name);
Q_SIGNALS:
/// this signal is emitted (as defined by KisDocument) the moment the document is 'ready'