From: Vadim Zeitlin Date: Thu, 6 Aug 2009 00:03:08 +0000 (+0000) Subject: Use 0 instead of NULL to initialize wxUIntPtr. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/958f8790cee6612c1f9987314a1fc45cbe0cb08f Use 0 instead of NULL to initialize wxUIntPtr. This avoids warning about assigning NULL to a non-pointer with some g++ versions. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index d7eb54290f..c2e487c0ea 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -371,7 +371,7 @@ void wxLogGui::DoLogRecord(wxLogLevel level, wxFrame *pFrame = NULL; // check if the frame was passed to us explicitly - wxUIntPtr ptr = NULL; + wxUIntPtr ptr = 0; if ( info.GetNumValue(wxLOG_KEY_FRAME, &ptr) ) { pFrame = static_cast(wxUIntToPtr(ptr));