projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove asserts in wxMSW::wxTLW::SetIcons() and always set some icon.
[wxWidgets.git]
/
src
/
unix
/
net.cpp
diff --git
a/src/unix/net.cpp
b/src/unix/net.cpp
index ab4936b94623aaa4f548cb99e662821066bde9ac..0516d9ef1b8af9f1cad588db7864930a923b6311 100644
(file)
--- a/
src/unix/net.cpp
+++ b/
src/unix/net.cpp
@@
-236,8
+236,7
@@
wxDialUpManagerImpl::EnableAutoCheckOnlineStatus(size_t nSeconds)
bool rc = m_timer->Start(nSeconds*1000);
if(! rc)
{
- delete m_timer;
- m_timer = NULL;
+ wxDELETE(m_timer);
}
return rc;
}
@@
-247,8
+246,7
@@
wxDialUpManagerImpl::DisableAutoCheckOnlineStatus()
{
wxASSERT(m_timer != NULL);
m_timer->Stop();
- delete m_timer;
- m_timer = NULL;
+ wxDELETE(m_timer);
}