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
@@ -214,7 +214,7 @@ QTextDocument *RefactoringFile::mutableDocument() const
|
||||
{
|
||||
if (m_editor)
|
||||
return m_editor->document();
|
||||
else if (!m_document) {
|
||||
if (!m_document) {
|
||||
QString fileContents;
|
||||
if (!m_fileName.isEmpty()) {
|
||||
QString error;
|
||||
@@ -238,7 +238,7 @@ const QTextCursor RefactoringFile::cursor() const
|
||||
{
|
||||
if (m_editor)
|
||||
return m_editor->textCursor();
|
||||
else if (!m_fileName.isEmpty()) {
|
||||
if (!m_fileName.isEmpty()) {
|
||||
if (QTextDocument *doc = mutableDocument())
|
||||
return QTextCursor(doc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user