X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4676948b6814c97b93c431a8cbcd8c0352c87ba9..9470921fbb927af3a4432a27d52c372998311964:/src/msw/brush.cpp diff --git a/src/msw/brush.cpp b/src/msw/brush.cpp index f1109f4633..5f497f119c 100644 --- a/src/msw/brush.cpp +++ b/src/msw/brush.cpp @@ -13,7 +13,7 @@ // declarations // ============================================================================ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "brush.h" #endif @@ -248,7 +248,7 @@ wxBrush::~wxBrush() wxBrush& wxBrush::operator=(const wxBrush& brush) { - if ( *this != brush ) + if ( this != &brush ) { Ref(brush); }