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:
@@ -1839,7 +1839,7 @@ FilePath BreakpointItem::markerFileName() const
|
||||
{
|
||||
// Some heuristics to find a "good" file name.
|
||||
if (m_parameters.fileName.exists())
|
||||
return FilePath::fromString(m_parameters.fileName.toFileInfo().absoluteFilePath());
|
||||
return m_parameters.fileName.absoluteFilePath();
|
||||
|
||||
const FilePath origFileName = requestedParameters().fileName;
|
||||
if (m_parameters.fileName.endsWith(origFileName.fileName()))
|
||||
@@ -2306,7 +2306,7 @@ FilePath GlobalBreakpointItem::markerFileName() const
|
||||
{
|
||||
// Some heuristics to find a "good" file name.
|
||||
if (m_params.fileName.exists())
|
||||
return FilePath::fromString(m_params.fileName.toFileInfo().absoluteFilePath());
|
||||
return m_params.fileName.absoluteFilePath();
|
||||
return m_params.fileName;
|
||||
}
|
||||
|
||||
|
@@ -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