forked from qt-creator/qt-creator
Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
c67f7f6349
commit
ad9e7ccab6
@@ -1463,9 +1463,9 @@ bool GitClient::synchronousInit(const QString &workingDirectory)
|
||||
const bool rc = fullySynchronousGit(workingDirectory, arguments, &outputText, &errorText);
|
||||
// '[Re]Initialized...'
|
||||
outputWindow()->append(commandOutputFromLocal8Bit(outputText));
|
||||
if (!rc)
|
||||
if (!rc) {
|
||||
outputWindow()->appendError(commandOutputFromLocal8Bit(errorText));
|
||||
else {
|
||||
} else {
|
||||
// TODO: Turn this into a VcsBaseClient and use resetCachedVcsInfo(...)
|
||||
Core::ICore::vcsManager()->resetVersionControlForDirectory(workingDirectory);
|
||||
}
|
||||
|
||||
@@ -920,9 +920,9 @@ void GitPlugin::gitkForCurrentFolder()
|
||||
*
|
||||
*/
|
||||
QDir dir(state.currentFileDirectory());
|
||||
if (QFileInfo(dir,QLatin1String(".git")).exists() || dir.cd(QLatin1String(".git")))
|
||||
if (QFileInfo(dir,QLatin1String(".git")).exists() || dir.cd(QLatin1String(".git"))) {
|
||||
m_gitClient->launchGitK(state.currentFileDirectory());
|
||||
else {
|
||||
} else {
|
||||
QString folderName = dir.absolutePath();
|
||||
dir.cdUp();
|
||||
folderName = folderName.remove(0, dir.absolutePath().length() + 1);
|
||||
|
||||
@@ -102,8 +102,7 @@ bool MergeTool::start(const QString &workingDirectory, const QStringList &files)
|
||||
if (m_process->waitForStarted()) {
|
||||
connect(m_process, SIGNAL(finished(int)), this, SLOT(done()));
|
||||
connect(m_process, SIGNAL(readyRead()), this, SLOT(readData()));
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
delete m_process;
|
||||
m_process = 0;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user