diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-10-08 11:58:18 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-10-08 13:38:17 +0200 |
commit | 2e15e54d958697e591424756f448c0580b718009 (patch) | |
tree | 4cf0222b429d16c35508a549f9defa9ea68b1f02 | |
parent | 32bf281a79a303f658fce364862390c5bcd1b5be (diff) | |
download | qt-creator-2e15e54d958697e591424756f448c0580b718009.tar.gz |
Fix MSVC warning
basetexteditor.cpp:6013: warning: C4189: 'ts' : local variable is
initialized but not referenced
Change-Id: Ia5d6531f8dab8debbb41da79f1cdf152ee831676
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r-- | src/plugins/texteditor/basetexteditor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 9ba6c45b12..06d6e6401e 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -6010,7 +6010,6 @@ void BaseTextEditorWidget::insertFromMimeData(const QMimeData *source) d->m_snippetOverlay->clear(); } - const TabSettings &ts = d->m_document->tabSettings(); const TypingSettings &tps = d->m_document->typingSettings(); QTextCursor cursor = textCursor(); if (!tps.m_autoIndent) { @@ -6024,7 +6023,7 @@ void BaseTextEditorWidget::insertFromMimeData(const QMimeData *source) cursor.beginEditBlock(); cursor.removeSelectedText(); - bool insertAtBeginningOfLine = ts.cursorIsAtBeginningOfLine(cursor); + bool insertAtBeginningOfLine = TabSettings::cursorIsAtBeginningOfLine(cursor); if (insertAtBeginningOfLine && source->hasFormat(QLatin1String(kTextBlockMimeType))) { |