aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppquickfixes.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-08-06 10:54:17 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-08-10 12:02:11 +0000
commitd9eb3dc5a445e79f679b69a7ed96e360c582d6ef (patch)
treecf6c7bdaf075a6a61590383ae0aed4bdacdf100e /src/plugins/cppeditor/cppquickfixes.cpp
parent84e4b3af31364973c44ad52c8c01430d42f996a4 (diff)
CppEditor: Do not re-indent existing code
... in "Complete Switch Statement" quickfix. Fixes: QTCREATORBUG-12445 Change-Id: Ic168f5b434b81d2b5f5a0d344d6c6786a75d07a5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixes.cpp')
-rw-r--r--src/plugins/cppeditor/cppquickfixes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp
index 90283f32e4..546824fdd6 100644
--- a/src/plugins/cppeditor/cppquickfixes.cpp
+++ b/src/plugins/cppeditor/cppquickfixes.cpp
@@ -2700,7 +2700,7 @@ public:
+ values.join(QLatin1String(":\nbreak;\ncase "))
+ QLatin1String(":\nbreak;"));
currentFile->setChangeSet(changes);
- currentFile->appendIndentRange(currentFile->range(compoundStatement));
+ currentFile->appendIndentRange(ChangeSet::Range(start, start + 1));
currentFile->apply();
}