aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggeritemmanager.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2021-06-17 17:25:38 +0200
committerhjk <[email protected]>2021-06-22 08:57:28 +0000
commitc0fe038f930d8913e0cd0cfda0b369f98d17988d (patch)
tree6a38c1f02f3edc9b6557d6a1915037596cbd8db0 /src/plugins/debugger/debuggeritemmanager.cpp
parent193f485be2e5252f12ca9dcad2f31bdeef515d04 (diff)
Utils: Simplify FilePath::toFileInfo().lastModified() calls
It's the same as FilePath::lastModified locally, and toFileInfo doesn't work remotely. So it's overall at least not worse. Change-Id: Ice8d80dcfd01dc38edc1dce2b53e1b5e6274380f Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggeritemmanager.cpp')
-rw-r--r--src/plugins/debugger/debuggeritemmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggeritemmanager.cpp b/src/plugins/debugger/debuggeritemmanager.cpp
index d4f54e28185..dd51890f1ed 100644
--- a/src/plugins/debugger/debuggeritemmanager.cpp
+++ b/src/plugins/debugger/debuggeritemmanager.cpp
@@ -778,7 +778,7 @@ void DebuggerItemManagerPrivate::autoDetectGdbOrLldbDebuggers(const FilePath &de
return titem->m_item.command() == command;
};
if (DebuggerTreeItem *existingItem = m_model->findItemAtLevel<2>(commandMatches)) {
- if (command.toFileInfo().lastModified() != existingItem->m_item.lastModified())
+ if (command.lastModified() != existingItem->m_item.lastModified())
existingItem->m_item.reinitializeFromFile();
continue;
}