diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-02-04 21:50:55 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-02-04 21:52:00 +0100 |
commit | bf2300fb0704f92f312b96b2e624a1730df5dd45 (patch) | |
tree | f1e5d8140f87c21709ace0fe48650806d3a8e137 /sc | |
parent | 904d59fab93eb2fe855f0a46d9d6d64e62df0228 (diff) |
Fix 3 "Possible inefficient checking"
Diffstat (limited to 'sc')
-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(); |