diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 08:12:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 10:02:39 +0200 |
commit | 2c1b7e8d6a7fa22cb91919238418816671c3a497 (patch) | |
tree | 6f356017d24dffcd25261295ab25a21b738dc835 /forms | |
parent | ad18bb24d51e4f735085d50c496d28bd637dbb0b (diff) |
clang-tidy readability-container-size-empty
Change-Id: I1df70b7dff5ebb6048f7fc618789faa15ca5d422
Reviewed-on: https://gerrit.libreoffice.org/61967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/EventThread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/EventThread.cxx b/forms/source/component/EventThread.cxx index 821f2b63e77e..76022a84f62d 100644 --- a/forms/source/component/EventThread.cxx +++ b/forms/source/component/EventThread.cxx @@ -71,7 +71,7 @@ Any SAL_CALL OComponentEventThread::queryInterface(const Type& _rType) void OComponentEventThread::impl_clearEventQueue() { - while ( m_aEvents.size() ) + while ( !m_aEvents.empty() ) { delete *m_aEvents.begin(); m_aEvents.erase( m_aEvents.begin() ); @@ -148,7 +148,7 @@ void OComponentEventThread::run() { ::osl::MutexGuard aGuard(m_aMutex); - while( m_aEvents.size() > 0 ) + while( !m_aEvents.empty() ) { // Get the Control and hold on to it so that it cannot be deleted during actionPerformed rtl::Reference<::cppu::OComponentHelper> xComp = m_xComp; |