summaryrefslogtreecommitdiff
path: root/src/plugins/diffeditor/diffeditorwidget.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-07-17 00:01:45 +0300
committerOrgad Shaneh <orgads@gmail.com>2013-07-17 11:11:25 +0200
commitad9e7ccab6e8476c0cb478ea2e4f13354dc21635 (patch)
tree9c67e7cfec7e7d0603e9279de9227cdef1cac530 /src/plugins/diffeditor/diffeditorwidget.cpp
parentc67f7f63497b321f42ee0081f29b7e3804023a10 (diff)
downloadqt-creator-ad9e7ccab6e8476c0cb478ea2e4f13354dc21635.tar.gz
Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/diffeditor/diffeditorwidget.cpp')
-rw-r--r--src/plugins/diffeditor/diffeditorwidget.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/diffeditor/diffeditorwidget.cpp b/src/plugins/diffeditor/diffeditorwidget.cpp
index 8b3b098dcb..aff227c8b5 100644
--- a/src/plugins/diffeditor/diffeditorwidget.cpp
+++ b/src/plugins/diffeditor/diffeditorwidget.cpp
@@ -952,12 +952,10 @@ ChunkData DiffEditorWidget::calculateOriginalData(const QList<Diff> &diffList) c
if (diff.command == Diff::Delete) {
leftLines.last() += line;
currentLeftPos += line.count();
- }
- else if (diff.command == Diff::Insert) {
+ } else if (diff.command == Diff::Insert) {
rightLines.last() += line;
currentRightPos += line.count();
- }
- else if (diff.command == Diff::Equal) {
+ } else if (diff.command == Diff::Equal) {
if ((line.count() || (j && j < lines.count() - 1)) && // don't treat empty ending line as a line to be aligned unless a line is a one char '/n' only.
currentLeftLine != lastAlignedLeftLine &&
currentRightLine != lastAlignedRightLine) {