diff options
author | hjk <hjk121@nokiamail.com> | 2014-07-25 14:54:10 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-07-28 12:33:47 +0200 |
commit | adfb30743df0644f144d16c95c70b025f8acb56c (patch) | |
tree | cb60a3735fafd6a19bbb295d83209b988fe04f87 /src/plugins/cpaster | |
parent | f3f40b14de348b51e822db84925b01206c41f93a (diff) | |
download | qt-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')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.cpp | 2 |
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); |