forked from qt-creator/qt-creator
Apply 'static' pattern to VcsManager
Adapt user and surrounding code. Change-Id: Id2648f82a9cbbd0ad0bfb91f6958b8cee7ea29cc Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -348,11 +348,12 @@ ProjectNode::ProjectNode(const QString &projectFilePath)
|
||||
setDisplayName(QFileInfo(projectFilePath).fileName());
|
||||
}
|
||||
|
||||
QString ProjectNode::vcsTopic() const {
|
||||
QString ProjectNode::vcsTopic() const
|
||||
{
|
||||
const QString dir = QFileInfo(path()).absolutePath();
|
||||
|
||||
if (Core::IVersionControl *const vc =
|
||||
Core::ICore::vcsManager()->findVersionControlForDirectory(dir))
|
||||
Core::VcsManager::findVersionControlForDirectory(dir))
|
||||
return vc->vcsTopic(dir);
|
||||
|
||||
return QString();
|
||||
|
||||
Reference in New Issue
Block a user