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:
@@ -8795,12 +8795,12 @@ bool wxRichTextBuffer::SaveFile(wxOutputStream& stream, wxRichTextFileType type)
|
|||||||
bool wxRichTextBuffer::CopyToClipboard(const wxRichTextRange& range)
|
bool wxRichTextBuffer::CopyToClipboard(const wxRichTextRange& range)
|
||||||
{
|
{
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
#if wxUSE_CLIPBOARD && wxUSE_DATAOBJ
|
||||||
|
|
||||||
wxRichTextParagraphLayoutBox* container = this;
|
wxRichTextParagraphLayoutBox* container = this;
|
||||||
if (GetRichTextCtrl())
|
if (GetRichTextCtrl())
|
||||||
container = GetRichTextCtrl()->GetFocusObject();
|
container = GetRichTextCtrl()->GetFocusObject();
|
||||||
|
|
||||||
#if wxUSE_CLIPBOARD && wxUSE_DATAOBJ
|
|
||||||
|
|
||||||
if (!wxTheClipboard->IsOpened() && wxTheClipboard->Open())
|
if (!wxTheClipboard->IsOpened() && wxTheClipboard->Open())
|
||||||
{
|
{
|
||||||
wxTheClipboard->Clear();
|
wxTheClipboard->Clear();
|
||||||
|
Reference in New Issue
Block a user