forked from qt-creator/qt-creator
VcsBase & dependent: Fix const correctness
And some minor cleanups. Change-Id: Id0c2df6865ba84c054f0fb97c0ac42a76a128355 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ QString SubversionEditorWidget::changeUnderCursor(const QTextCursor &c) const
|
||||
cursor.select(QTextCursor::LineUnderCursor);
|
||||
if (!cursor.hasSelection())
|
||||
return QString();
|
||||
QString change = cursor.selectedText();
|
||||
const QString change = cursor.selectedText();
|
||||
const int pos = c.position() - cursor.selectionStart() + 1;
|
||||
// Annotation output has number, log output has revision numbers,
|
||||
// both at the start of the line.
|
||||
|
||||
Reference in New Issue
Block a user