Avoid unused variable warning in wxUSE_DATAOBJ==0 build.

Declare variable only used when wxUSE_DATAOBJ==1 inside the check for it.

Closes #16434.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-08-24 13:35:29 +00:00
parent 005aa92678
commit a8bd40d571

View File

@ -499,11 +499,11 @@ void ScintillaWX::Copy() {
void ScintillaWX::Paste() {
pdoc->BeginUndoAction();
ClearSelection(multiPasteMode == SC_MULTIPASTE_EACH);
bool isRectangularClipboard = false;
#if wxUSE_DATAOBJ
wxTextDataObject data;
bool gotData = false;
bool isRectangularClipboard = false;
wxTheClipboard->UsePrimarySelection(false);
if (wxTheClipboard->Open()) {