mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-04 10:43:08 +01:00
I think this is the right way to printf a wxString. Hard to tell.
Everything else gives me weird warnings.
This commit is contained in:
@@ -158,7 +158,7 @@ void av_log_wx_callback(void* ptr, int level, const char* fmt, va_list vl)
|
|||||||
//will crash.
|
//will crash.
|
||||||
//TODO:find some workaround for the log. perhaps use ODManager as a bridge. for now just print
|
//TODO:find some workaround for the log. perhaps use ODManager as a bridge. for now just print
|
||||||
if(!wxThread::IsMain())
|
if(!wxThread::IsMain())
|
||||||
printf("%s: %s\n",cpt.char_str(),printstring.char_str());
|
printf("%s: %s\n",(char*)cpt.char_str(),(char*)printstring.char_str());
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
wxLogMessage(wxT("%s: %s"),cpt.c_str(),printstring.c_str());
|
wxLogMessage(wxT("%s: %s"),cpt.c_str(),printstring.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user