forked from qt-creator/qt-creator
remove some unneeded FilePath::toFileInfo
Change-Id: I6e6e5906d8c2ca972e98733d06d40fddc68865de Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -704,7 +704,7 @@ void TextDocument::setFilePath(const Utils::FilePath &newName)
|
||||
{
|
||||
if (newName == filePath())
|
||||
return;
|
||||
IDocument::setFilePath(Utils::FilePath::fromUserInput(newName.toFileInfo().absoluteFilePath()));
|
||||
IDocument::setFilePath(newName.absoluteFilePath());
|
||||
}
|
||||
|
||||
bool TextDocument::isModified() const
|
||||
|
||||
Reference in New Issue
Block a user