summaryrefslogtreecommitdiff
path: root/src/plugins/cpaster/cpasterplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-07-25 14:54:10 +0200
committerhjk <hjk121@nokiamail.com>2014-07-28 12:33:47 +0200
commitadfb30743df0644f144d16c95c70b025f8acb56c (patch)
treecb60a3735fafd6a19bbb295d83209b988fe04f87 /src/plugins/cpaster/cpasterplugin.cpp
parentf3f40b14de348b51e822db84925b01206c41f93a (diff)
downloadqt-creator-adfb30743df0644f144d16c95c70b025f8acb56c.tar.gz
TextEditor: Merge BaseTextEditorDocument into BaseTextDocument
That was the only user of that layer of abstraction. Change-Id: I2bdc4abb8b2b33bfb70398dd11f7ecc4745ddc43 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/cpaster/cpasterplugin.cpp')
-rw-r--r--src/plugins/cpaster/cpasterplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp
index 0baaed7743..605a2176d1 100644
--- a/src/plugins/cpaster/cpasterplugin.cpp
+++ b/src/plugins/cpaster/cpasterplugin.cpp
@@ -214,7 +214,7 @@ void CodepasterPlugin::postEditor()
if (const BaseTextEditor *textEditor = qobject_cast<const BaseTextEditor *>(editor))
data = textEditor->selectedText();
if (data.isEmpty()) {
- if (const BaseTextEditorDocument *textDocument = qobject_cast<const BaseTextEditorDocument *>(document))
+ if (auto textDocument = qobject_cast<const BaseTextDocument *>(document))
data = textDocument->plainText();
}
post(data, mimeType);