Commit c273a47d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Core: Avoid copy in IDocument::filePath()

Change-Id: I40d5ebc73856e85e36080b94e071edef15242666
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent a5c0b568
......@@ -129,7 +129,7 @@ bool IDocument::setContents(const QByteArray &contents)
return false;
}
Utils::FileName IDocument::filePath() const
const Utils::FileName &IDocument::filePath() const
{
return d->filePath;
}
......
......@@ -89,7 +89,7 @@ public:
virtual bool save(QString *errorString, const QString &fileName = QString(), bool autoSave = false) = 0;
virtual bool setContents(const QByteArray &contents);
Utils::FileName filePath() const;
const Utils::FileName &filePath() const;
virtual void setFilePath(const Utils::FileName &filePath);
QString displayName() const;
void setPreferredDisplayName(const QString &name);
......
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