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>
This commit is contained in:
Orgad Shaneh
2013-10-08 11:58:18 +03:00
committed by Orgad Shaneh
parent 32bf281a79
commit 2e15e54d95

View File

@@ -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))) {