SF.net SVN: mahogany:[7569] trunk/M/src/gui/MImport.cpp
[email protected] Tue, 21 Jul 2009 00:17:02 +0000
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7569
http://mahogany.svn.sourceforge.net/mahogany/?rev=7569&view=rev
Author: vadz
Date: 2009-07-21 00:16:59 +0000 (Tue, 21 Jul 2009)
Log Message:
-----------
Use new wxLog::DoLogRecord() instead of deprecated DoLogString() with new enough wx.
Modified Paths:
--------------
trunk/M/src/gui/MImport.cpp
Modified: trunk/M/src/gui/MImport.cpp
===================================================================
--- trunk/M/src/gui/MImport.cpp 2009-05-08 16:30:12 UTC (rev 7568)
+++ trunk/M/src/gui/MImport.cpp 2009-07-21 00:16:59 UTC (rev 7569)
@@ -141,14 +141,23 @@
virtual ~wxImportDialogLog() { delete wxLog::SetActiveTarget(m_logOld); }
+#if wxCHECK_VERSION(2,9,1)
+ virtual void DoLogRecord(wxLogLevel WXUNUSED(level),
+ const wxString& szString,
+ const wxLogRecordInfo& info)
+ {
+ time_t t = info.timestamp;
+#else // wx < 2.9.1
virtual void DoLogString(const wxChar *szString, time_t t)
{
+#endif
m_dialog->GetLogListBox()->Append(
wxString::Format(_T("%s:\t%s"),
wxDateTime(t).FormatTime().c_str(),
szString)
);
}
+ //} just to balance parenthesis
private:
wxImportDialog *m_dialog;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge