Commit c58cb2a4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Core: Pass const string by reference



Change-Id: Ic927334a04cf61bccede3179eee0ca679c5b998f
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 1c47b15d
......@@ -867,8 +867,8 @@ bool DocumentManager::saveModifiedDocument(IDocument *document, const QString &m
*/
QStringList DocumentManager::getOpenFileNames(const QString &filters,
const QString pathIn,
QString *selectedFilter)
const QString &pathIn,
QString *selectedFilter)
{
QString path = pathIn;
if (path.isEmpty()) {
......
......@@ -90,8 +90,8 @@ public:
static bool saveDocument(IDocument *document, const QString &fileName = QString(), bool *isReadOnly = 0);
static QStringList getOpenFileNames(const QString &filters,
const QString path = QString(),
QString *selectedFilter = 0);
const QString &path = QString(),
QString *selectedFilter = 0);
static QString getSaveFileName(const QString &title, const QString &pathIn,
const QString &filter = QString(), QString *selectedFilter = 0);
static QString getSaveFileNameWithExtension(const QString &title, const QString &pathIn,
......
Supports Markdown
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