forked from qt-creator/qt-creator
Use FileName in TextMark
Change-Id: I3666d95dc8ef3b7da099d6d30f5cb4678a349493 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -125,7 +125,7 @@ Location::Location(const StackFrame &frame, bool marker)
|
||||
}
|
||||
|
||||
|
||||
LocationMark::LocationMark(DebuggerEngine *engine, const QString &file, int line)
|
||||
LocationMark::LocationMark(DebuggerEngine *engine, const FileName &file, int line)
|
||||
: TextMark(file, line, Constants::TEXT_MARK_CATEGORY_LOCATION), m_engine(engine)
|
||||
{
|
||||
setIcon(Icons::LOCATION.icon());
|
||||
@@ -544,7 +544,7 @@ void DebuggerEngine::gotoLocation(const Location &loc)
|
||||
editor->document()->setProperty(Constants::OPENED_BY_DEBUGGER, true);
|
||||
|
||||
if (loc.needsMarker())
|
||||
d->m_locationMark.reset(new LocationMark(this, file, line));
|
||||
d->m_locationMark.reset(new LocationMark(this, FileName::fromString(file), line));
|
||||
}
|
||||
|
||||
const DebuggerRunParameters &DebuggerEngine::runParameters() const
|
||||
|
||||
Reference in New Issue
Block a user