[Libreoffice-commits] .: fpicker/source
Michael Meeks
michael at kemper.freedesktop.org
Fri Feb 17 07:18:41 PST 2012
fpicker/source/win32/filepicker/asynceventnotifier.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b7a0b9e51918fb0de2ec290f90178d36e4761f67
Author: Mariusz Dykierek <mariuszdykierek at gmail.com>
Date: Fri Feb 17 15:15:44 2012 +0000
Possible inefficient checking for 'm_EventList' emptiness.
diff --git a/fpicker/source/win32/filepicker/asynceventnotifier.cxx b/fpicker/source/win32/filepicker/asynceventnotifier.cxx
index a155f8b..748e5ac 100644
--- a/fpicker/source/win32/filepicker/asynceventnotifier.cxx
+++ b/fpicker/source/win32/filepicker/asynceventnotifier.cxx
@@ -240,7 +240,7 @@ size_t SAL_CALL CAsyncEventNotifier::getEventListSize()
void SAL_CALL CAsyncEventNotifier::resetNotifyEvent()
{
osl::MutexGuard aGuard(m_Mutex);
- if (0 == m_EventList.size())
+ if ( m_EventList.empty() )
ResetEvent(m_NotifyEvent);
}
More information about the Libreoffice-commits
mailing list