Fix g++ compilation of wxFileSystemWatcher test after VC6 fix.
Enums can't be used to deduce template parameters so cast WAIT_DURATION to int explicitly before passing it to wxString::Format(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -305,15 +305,13 @@ public:
|
|||||||
virtual bool AfterWait()
|
virtual bool AfterWait()
|
||||||
{
|
{
|
||||||
// fail if still no events
|
// fail if still no events
|
||||||
if (!tested)
|
WX_ASSERT_MESSAGE
|
||||||
{
|
(
|
||||||
wxString s;
|
("No events during %d seconds!", static_cast<int>(WAIT_DURATION)),
|
||||||
s.Printf("No events from watcher during %d seconds!",
|
tested
|
||||||
WAIT_DURATION);
|
);
|
||||||
CPPUNIT_FAIL((const char*)s);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnFileSystemEvent(wxFileSystemWatcherEvent& evt)
|
virtual void OnFileSystemEvent(wxFileSystemWatcherEvent& evt)
|
||||||
|
Reference in New Issue
Block a user