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:
parent
005aa92678
commit
a8bd40d571
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user