forked from qt-creator/qt-creator
Utils: Make FileName::shortNativePath a member
Change-Id: If1ab02ae9dc7efb97792cdf3bbdce3bba18b3e3d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -166,8 +166,8 @@ void CppToolsPlugin::test_cpplocatorfilters_CppLocatorFilter_data()
|
||||
MyTestDataDir testDirectory("testdata_basic");
|
||||
const QString testFile = testDirectory.file("file1.cpp");
|
||||
const QString objTestFile = testDirectory.file("file1.mm");
|
||||
const QString testFileShort = FileUtils::shortNativePath(FileName::fromString(testFile));
|
||||
const QString objTestFileShort = FileUtils::shortNativePath(FileName::fromString(objTestFile));
|
||||
const QString testFileShort = FileName::fromString(testFile).shortNativePath();
|
||||
const QString objTestFileShort = FileName::fromString(objTestFile).shortNativePath();
|
||||
|
||||
QTest::newRow("CppFunctionsFilter")
|
||||
<< testFile
|
||||
|
||||
@@ -88,7 +88,7 @@ QString IndexItem::representDeclaration() const
|
||||
|
||||
QString IndexItem::shortNativeFilePath() const
|
||||
{
|
||||
return Utils::FileUtils::shortNativePath(Utils::FileName::fromString(m_fileName));
|
||||
return Utils::FileName::fromString(m_fileName).shortNativePath();
|
||||
}
|
||||
|
||||
void IndexItem::squeeze()
|
||||
|
||||
Reference in New Issue
Block a user