forked from qt-creator/qt-creator
ICore: Change some path API to use FilePath
Change-Id: Id841d6177206a021c9e606ce560b47d1ae6e52b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -72,7 +72,7 @@ namespace Internal {
|
||||
const char DEBUGGER_COUNT_KEY[] = "DebuggerItem.Count";
|
||||
const char DEBUGGER_DATA_KEY[] = "DebuggerItem.";
|
||||
const char DEBUGGER_FILE_VERSION_KEY[] = "Version";
|
||||
const char DEBUGGER_FILENAME[] = "/debuggers.xml";
|
||||
const char DEBUGGER_FILENAME[] = "debuggers.xml";
|
||||
const char debuggingToolsWikiLinkC[] = "http://wiki.qt.io/Qt_Creator_Windows_Debugging";
|
||||
|
||||
class DebuggerItemModel;
|
||||
@@ -835,7 +835,7 @@ void DebuggerItemManagerPrivate::autoDetectUvscDebuggers()
|
||||
|
||||
static FilePath userSettingsFileName()
|
||||
{
|
||||
return FilePath::fromString(ICore::userResourcePath() + DEBUGGER_FILENAME);
|
||||
return ICore::userResourcePath() / DEBUGGER_FILENAME;
|
||||
}
|
||||
|
||||
DebuggerItemManagerPrivate::DebuggerItemManagerPrivate()
|
||||
@@ -931,7 +931,7 @@ void DebuggerItemManagerPrivate::readDebuggers(const FilePath &fileName, bool is
|
||||
void DebuggerItemManagerPrivate::restoreDebuggers()
|
||||
{
|
||||
// Read debuggers from SDK
|
||||
readDebuggers(FilePath::fromString(ICore::installerResourcePath() + DEBUGGER_FILENAME), true);
|
||||
readDebuggers(ICore::installerResourcePath() / DEBUGGER_FILENAME, true);
|
||||
|
||||
// Read all debuggers from user file.
|
||||
readDebuggers(userSettingsFileName(), false);
|
||||
|
||||
Reference in New Issue
Block a user