// log a message indicating the number of times the previous message was
// repeated if ms_prevCounter > 0, does nothing otherwise; return the old
// value of ms_prevCounter
- static unsigned LogLastRepetitionCountIfNeeded();
+ unsigned LogLastRepetitionCountIfNeeded();
private:
// static variables
// wxLog class implementation
// ----------------------------------------------------------------------------
-/* static */
unsigned wxLog::LogLastRepetitionCountIfNeeded()
{
wxCRIT_SECT_LOCKER(lock, ms_prevCS);
const unsigned count = ms_prevCounter;
- wxLog *pLogger = GetActiveTarget();
- if ( pLogger && ms_prevCounter )
+ if ( ms_prevCounter )
{
wxString msg;
#if wxUSE_INTL
#endif
ms_prevCounter = 0;
ms_prevString.clear();
- pLogger->DoLog(ms_prevLevel, msg, ms_prevTimeStamp);
+ DoLog(ms_prevLevel, msg, ms_prevTimeStamp);
}
return count;
return;
}
- LogLastRepetitionCountIfNeeded();
+ pLogger->LogLastRepetitionCountIfNeeded();
// reset repetition counter for a new message
ms_prevString = szString;
// do it right now to block any new calls to Flush() while we're here
m_bHasMessages = false;
- const unsigned repeatCount = wxLog::LogLastRepetitionCountIfNeeded();
+ const unsigned repeatCount = LogLastRepetitionCountIfNeeded();
wxString appName = wxTheApp->GetAppDisplayName();