]> git.saurik.com Git - wxWidgets.git/commitdiff
added missing wxLogStatus function with variable argument list pointer
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Wed, 16 Jan 2002 10:04:05 +0000 (10:04 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Wed, 16 Jan 2002 10:04:05 +0000 (10:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/logg.cpp

index b4f092a4c88c9a622af44fbafc7b86f608c44075..8643ce0268a222ac7d03788c7e4ff8b1cded8a62 100644 (file)
@@ -177,16 +177,13 @@ static wxFrame *gs_pFrame = NULL; // FIXME MT-unsafe
 
 // accepts an additional argument which tells to which frame the output should
 // be directed
-void wxLogStatus(wxFrame *pFrame, const wxChar *szFormat, ...)
+void wxLogStatus(wxFrame *pFrame, const wxChar *szFormat, va_list argptr)
 {
   wxString msg;
 
   wxLog *pLog = wxLog::GetActiveTarget();
   if ( pLog != NULL ) {
-    va_list argptr;
-    va_start(argptr, szFormat);
     msg.PrintfV(szFormat, argptr);
-    va_end(argptr);
 
     wxASSERT( gs_pFrame == NULL ); // should be reset!
     gs_pFrame = pFrame;
@@ -195,6 +192,14 @@ void wxLogStatus(wxFrame *pFrame, const wxChar *szFormat, ...)
   }
 }
 
+void wxLogStatus(wxFrame *pFrame, const wxChar *szFormat, ...)
+{
+    va_list argptr;
+    va_start(argptr, szFormat);
+    wxLogStatus(pFrame, szFormat, argptr);
+    va_end(argptr);
+}
+
 // ----------------------------------------------------------------------------
 // wxLogGui implementation (FIXME MT-unsafe)
 // ----------------------------------------------------------------------------