diff options
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/cellsh1.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 47ef6b9d7ba4..a9da20e8fdb4 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -2162,7 +2162,7 @@ sal_Bool ScModule::UnregisterRefWindow( sal_uInt16 nSlotId, Window *pWnd ) rlRefWindow.erase( i ); - if( !rlRefWindow.size() ) + if( rlRefWindow.empty() ) m_mapRefWindow.erase( nSlotId ); return sal_True; diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index e9a574ff950b..603d7b8c3555 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -1836,7 +1836,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) pScMod->InputKeyEvent( KeyEvent('=',KeyCode()) ); std::vector<rtl::OUString> aNames = pDlg->GetSelectedNames(); - if (aNames.size()) + if (!aNames.empty()) { rtl::OUStringBuffer aBuffer; for (std::vector<rtl::OUString>::const_iterator itr = aNames.begin(); diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index c843e96c2cab..e339b2c15d44 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -438,7 +438,7 @@ void ScEditShell::Execute( SfxRequest& rReq ) if ( nRet == BTN_PASTE_NAME ) { std::vector<rtl::OUString> aNames = pDlg->GetSelectedNames(); - if (aNames.size()) + if (!aNames.empty()) { rtl::OUStringBuffer aBuffer; for (std::vector<rtl::OUString>::const_iterator itr = aNames.begin(); |