forked from qt-creator/qt-creator
Utils: Mark some convenience methods as const/static
Change-Id: Icb7a7394270e495717de5edd66bc19a0c2d97a3c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user