diff options
author | Mariusz Dykierek <mariuszdykierek@gmail.com> | 2012-02-17 15:15:44 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-17 15:17:32 +0000 |
commit | b7a0b9e51918fb0de2ec290f90178d36e4761f67 (patch) | |
tree | ab163c94535387c1a72e93d4b27307a4ddba9228 /fpicker | |
parent | e14700edc0ebb194392b53e19d02be9f5c7e3e6f (diff) |
Possible inefficient checking for 'm_EventList' emptiness.
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/asynceventnotifier.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/win32/filepicker/asynceventnotifier.cxx b/fpicker/source/win32/filepicker/asynceventnotifier.cxx index a155f8b0e7b4..748e5acb278e 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); } |