chore: Replace deprecated FilePath::toString() with toFSPathString() (#116)

This solves a number of deprecation warnings during build.
FilePath::toFSPathString() has been available since couple of years ago.
This commit is contained in:
Povilas Kanapickas
2025-03-08 17:08:33 +02:00
committed by GitHub
parent 6c323642e4
commit 7c483f89cd
4 changed files with 15 additions and 13 deletions

View File

@ -43,8 +43,8 @@ ProjectSettings::ProjectSettings(ProjectExplorer::Project *project)
chatHistoryPath.setExpectedKind(Utils::PathChooser::ExistingDirectory);
chatHistoryPath.setLabelText(Tr::tr("Chat History Path:"));
QString projectChatHistoryPath
= QString("%1/qodeassist/chat_history").arg(Core::ICore::userResourcePath().toString());
QString projectChatHistoryPath = QString("%1/qodeassist/chat_history")
.arg(Core::ICore::userResourcePath().toFSPathString());
chatHistoryPath.setDefaultValue(projectChatHistoryPath);