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:
@@ -159,7 +159,7 @@ QString FileUtils::msgTerminalAction()
|
||||
void FileUtils::removeFile(const QString &filePath, bool deleteFromFS)
|
||||
{
|
||||
// remove from version control
|
||||
ICore::vcsManager()->promptToDelete(filePath);
|
||||
VcsManager::promptToDelete(filePath);
|
||||
|
||||
// remove from file system
|
||||
if (deleteFromFS) {
|
||||
@@ -194,7 +194,7 @@ bool FileUtils::renameFile(const QString &orgFilePath, const QString &newFilePat
|
||||
return false;
|
||||
|
||||
QString dir = QFileInfo(orgFilePath).absolutePath();
|
||||
IVersionControl *vc = ICore::vcsManager()->findVersionControlForDirectory(dir);
|
||||
IVersionControl *vc = VcsManager::findVersionControlForDirectory(dir);
|
||||
|
||||
bool result = false;
|
||||
if (vc && vc->supportsOperation(IVersionControl::MoveOperation))
|
||||
|
||||
Reference in New Issue
Block a user