Fix harmless unused variable warning in some build configurations.

Don't declare the variables if they are not going to be used.

Closes #16830.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2015-02-04 13:16:26 +00:00
parent 6c3dfd113b
commit 5a8893aa7a

View File

@ -8795,12 +8795,12 @@ bool wxRichTextBuffer::SaveFile(wxOutputStream& stream, wxRichTextFileType type)
bool wxRichTextBuffer::CopyToClipboard(const wxRichTextRange& range)
{
bool success = false;
#if wxUSE_CLIPBOARD && wxUSE_DATAOBJ
wxRichTextParagraphLayoutBox* container = this;
if (GetRichTextCtrl())
container = GetRichTextCtrl()->GetFocusObject();
#if wxUSE_CLIPBOARD && wxUSE_DATAOBJ
if (!wxTheClipboard->IsOpened() && wxTheClipboard->Open())
{
wxTheClipboard->Clear();