Remove useless #ifdef wxUSE_DEBUG_NEW_ALWAYS check

This symbol is tested using "#if", so it should be always defined and there is
no need for testing whether this is the case.

Moreover, doing this useless check triggers warning C4574 (which is disabled
by default, but it's useful enough to enable it explicitly) with VC14 about
using "#ifdef" with a symbol defined as 0.
This commit is contained in:
Vadim Zeitlin 2016-02-13 13:13:24 +01:00
parent 75de19b21f
commit 8e3a317392

View File

@ -911,10 +911,8 @@ typedef short int WXTYPE;
/* where should i put this? we need to make sure of this as it breaks */ /* where should i put this? we need to make sure of this as it breaks */
/* the <iostream> code. */ /* the <iostream> code. */
#if !wxUSE_IOSTREAMH && defined(__WXDEBUG__) #if !wxUSE_IOSTREAMH && defined(__WXDEBUG__)
# ifdef wxUSE_DEBUG_NEW_ALWAYS
# undef wxUSE_DEBUG_NEW_ALWAYS # undef wxUSE_DEBUG_NEW_ALWAYS
# define wxUSE_DEBUG_NEW_ALWAYS 0 # define wxUSE_DEBUG_NEW_ALWAYS 0
# endif
#endif #endif
/* ---------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------- */