Kaydet (Commit) bf2300fb authored tarafından Julien Nabet's avatar Julien Nabet

Fix 3 "Possible inefficient checking"

üst 904d59fa
......@@ -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;
......
......@@ -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();
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment