forked from qt-creator/qt-creator
TextEditor: Simplify Utils::CommentDefinition structure
Change-Id: I8fc97ed61c47af2c3d9e5cc2bf81e97661204d4f Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -1178,13 +1178,13 @@ void BaseTextEditorWidget::moveLineUpDown(bool up)
|
||||
QString trimmedText(text.trimmed());
|
||||
|
||||
if (commentDefinition->hasSingleLineStyle()) {
|
||||
if (trimmedText.startsWith(commentDefinition->singleLine()))
|
||||
if (trimmedText.startsWith(commentDefinition->singleLine))
|
||||
shouldReindent = false;
|
||||
}
|
||||
if (shouldReindent && commentDefinition->hasMultiLineStyle()) {
|
||||
// Don't have any single line comments; try multi line.
|
||||
if (trimmedText.startsWith(commentDefinition->multiLineStart())
|
||||
&& trimmedText.endsWith(commentDefinition->multiLineEnd())) {
|
||||
if (trimmedText.startsWith(commentDefinition->multiLineStart)
|
||||
&& trimmedText.endsWith(commentDefinition->multiLineEnd)) {
|
||||
shouldReindent = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user