Utils: Mark some convenience methods as const/static

Change-Id: Icb7a7394270e495717de5edd66bc19a0c2d97a3c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Bernhard Beschow
2021-02-06 13:30:10 +01:00
parent aec6126634
commit a8074f7dc0
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ bool OutputLineParser::demoteErrorsToWarnings() const
return d->demoteErrorsToWarnings; return d->demoteErrorsToWarnings;
} }
FilePath OutputLineParser::absoluteFilePath(const FilePath &filePath) FilePath OutputLineParser::absoluteFilePath(const FilePath &filePath) const
{ {
if (filePath.isEmpty() || filePath.toFileInfo().isAbsolute()) if (filePath.isEmpty() || filePath.toFileInfo().isAbsolute())
return filePath; return filePath;

View File

@@ -102,7 +102,7 @@ public:
protected: protected:
static QString rightTrimmed(const QString &in); static QString rightTrimmed(const QString &in);
Utils::FilePath absoluteFilePath(const Utils::FilePath &filePath); Utils::FilePath absoluteFilePath(const Utils::FilePath &filePath) const;
static QString createLinkTarget(const FilePath &filePath, int line, int column); static QString createLinkTarget(const FilePath &filePath, int line, int column);
static void addLinkSpecForAbsoluteFilePath(LinkSpecs &linkSpecs, const FilePath &filePath, static void addLinkSpecForAbsoluteFilePath(LinkSpecs &linkSpecs, const FilePath &filePath,
int lineNo, int pos, int len); int lineNo, int pos, int len);