forked from qt-creator/qt-creator
Utils: add FilePath::completeBaseName
Removing some FilePath::toFileInfo() calls again. Change-Id: I6610beebf2c30754fde525b71f4c4a34ceb5e30b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -132,7 +132,7 @@ Highlighter::Definitions Highlighter::definitionsForDocument(const TextDocument
|
||||
// cmake configure_file input filenames without the .in extension
|
||||
if (filePath.endsWith(".in")) {
|
||||
definitions = definitionsForFileName(
|
||||
Utils::FilePath::fromString(filePath.toFileInfo().completeBaseName()));
|
||||
Utils::FilePath::fromString(filePath.completeBaseName()));
|
||||
}
|
||||
}
|
||||
if (definitions.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user