X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30413fd03ea2a41832d5ad101819bbad54b8252e..b6afa1a38a78ac44ec984fbd211f658f2f80094b:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 98256b16e0..37143c97c4 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -209,8 +209,7 @@ void wxLogFatalError(const wxChar *szFormat, ...) void wxVLogVerbose(const wxChar *szFormat, va_list argptr) { if ( IsLoggingEnabled() ) { - wxLog *pLog = wxLog::GetActiveTarget(); - if ( pLog != NULL && pLog->GetVerbose() ) { + if ( wxLog::GetActiveTarget() != NULL && wxLog::GetVerbose() ) { wxCRIT_SECT_LOCKER(locker, gs_csLogBuf); wxVsnprintf(s_szBuf, s_szBufSize, szFormat, argptr);