]> git.saurik.com Git - wxWidgets.git/commitdiff
added static casts to void * for pointers used with format specifier to silence...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Jul 2006 17:05:46 +0000 (17:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Jul 2006 17:05:46 +0000 (17:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp
src/common/wincmn.cpp

index a3bcdb598368d439987bd1c6425a6b74e6a0032c..cc4823e0588b88c46e153a51c5972d4d51d53f2e 100644 (file)
@@ -1684,9 +1684,9 @@ bool wxFileConfigGroup::DeleteSubgroup(wxFileConfigGroup *pGroup)
 
     wxLogTrace( FILECONF_TRACE_MASK,
                 _T("  (m_pLine) = prev: %p, this %p, next %p"),
-                m_pLine ? m_pLine->Prev() : NULL,
-                m_pLine,
-                m_pLine ? m_pLine->Next() : NULL );
+                m_pLine ? wx_static_cast(void*, m_pLine->Prev()) : 0,
+                wx_static_cast(void*, m_pLine),
+                m_pLine ? wx_static_cast(void*, m_pLine->Next()) : 0 );
     wxLogTrace( FILECONF_TRACE_MASK,
                 _T("  text: '%s'"),
                 m_pLine ? m_pLine->Text().c_str() : wxEmptyString );
index 8fbcbc966b452000e4530909128f9276d4f0f0fa..ea7f5ced34d6c2f2dfdeb03df202055d157d5ab6 100644 (file)
@@ -2342,7 +2342,7 @@ struct WXDLLEXPORT wxWindowNext
 
 void wxWindowBase::CaptureMouse()
 {
-    wxLogTrace(_T("mousecapture"), _T("CaptureMouse(%p)"), this);
+    wxLogTrace(_T("mousecapture"), _T("CaptureMouse(%p)"), wx_static_cast(void*, this));
 
     wxWindow *winOld = GetCapture();
     if ( winOld )
@@ -2362,7 +2362,7 @@ void wxWindowBase::CaptureMouse()
 
 void wxWindowBase::ReleaseMouse()
 {
-    wxLogTrace(_T("mousecapture"), _T("ReleaseMouse(%p)"), this);
+    wxLogTrace(_T("mousecapture"), _T("ReleaseMouse(%p)"), wx_static_cast(void*, this));
 
     wxASSERT_MSG( GetCapture() == this, wxT("attempt to release mouse, but this window hasn't captured it") );
 
@@ -2380,7 +2380,7 @@ void wxWindowBase::ReleaseMouse()
 
     wxLogTrace(_T("mousecapture"),
         (const wxChar *) _T("After ReleaseMouse() mouse is captured by %p"),
-        GetCapture());
+        wx_static_cast(void*, GetCapture()));
 }
 
 #if wxUSE_HOTKEY