loplugin:unnecessaryparen (clang-cl)

Change-Id: I3a2b7ed3fdef3b77c0a052b10f88918aa616779e
Reviewed-on: https://gerrit.libreoffice.org/45469
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2017-11-29 10:10:26 +01:00
parent bdfbc91ca0
commit 368f806aaa
8 changed files with 11 additions and 11 deletions

View file

@ -194,7 +194,7 @@ namespace dxcanvas
void SpriteDeviceHelper::resizeBackBuffer( const ::basegfx::B2ISize& rNewSize )
{
// disposed?
if(!(mpBackBuffer))
if(!mpBackBuffer)
return;
mpBackBuffer->resize(rNewSize);

View file

@ -253,7 +253,7 @@ oslFileError FileHandle_Impl::setPos(sal_uInt64 uPos)
sal_uInt64 FileHandle_Impl::getSize() const
{
LONGLONG bufend = std::max((LONGLONG)(0), m_bufptr) + m_buflen;
LONGLONG bufend = std::max((LONGLONG)0, m_bufptr) + m_buflen;
return std::max(m_size, sal::static_int_cast< sal_uInt64 >(bufend));
}

View file

@ -1064,7 +1064,7 @@ void SAL_CALL rtl_machdep_free(
#if defined(SAL_UNX)
(void) munmap(pAddr, nSize);
#elif defined(SAL_W32)
(void) VirtualFree (pAddr, (SIZE_T)(0), MEM_RELEASE);
(void) VirtualFree (pAddr, (SIZE_T)0, MEM_RELEASE);
#endif /* (SAL_UNX || SAL_W32) */
}

View file

@ -235,7 +235,7 @@ static void deleteSystrayMenu( HMENU hMenu )
MYITEM *pMyItem = reinterpret_cast<MYITEM*>(mi.dwItemData);
if( pMyItem )
{
(pMyItem->text).clear();
pMyItem->text.clear();
delete pMyItem;
}
mi.fMask = MIIM_DATA;

View file

@ -106,7 +106,7 @@ std::wstring getFileTypeInfo(const std::wstring& file_extension)
wchar_t extKeyValue[MAX_STRING];
wchar_t typeKeyValue[MAX_STRING];
::std::wstring sDot(L".");
if (QueryRegistryKey(HKEY_CLASSES_ROOT, (sDot.append(file_extension)).c_str(), L"", extKeyValue, MAX_STRING))
if (QueryRegistryKey(HKEY_CLASSES_ROOT, sDot.append(file_extension).c_str(), L"", extKeyValue, MAX_STRING))
if (QueryRegistryKey( HKEY_CLASSES_ROOT, extKeyValue, L"",typeKeyValue, MAX_STRING))
return typeKeyValue;

View file

@ -204,7 +204,7 @@ found:
if ( pItem )
pTopic->aItem = pItem->GetName();
else
(pTopic->aItem).clear();
pTopic->aItem.clear();
bool bRes = false;
switch( nCode )

View file

@ -165,7 +165,7 @@ STDMETHODIMP CAccActionBase::get_keyBinding(
if( !binding.is() )
return E_FAIL;
long nCount = (binding.get())->getAccessibleKeyBindingCount();
long nCount = binding.get()->getAccessibleKeyBindingCount();
*keyBinding = static_cast<BSTR*>(::CoTaskMemAlloc(nCount*sizeof(BSTR)));
@ -175,7 +175,7 @@ STDMETHODIMP CAccActionBase::get_keyBinding(
for( int index = 0;index < nCount;index++ )
{
auto const wString = GetkeyBindingStrByXkeyBinding( (binding.get())->getAccessibleKeyBinding(index) );
auto const wString = GetkeyBindingStrByXkeyBinding( binding.get()->getAccessibleKeyBinding(index) );
(*keyBinding)[index] = SysAllocString(o3tl::toW(wString.getStr()));
}

View file

@ -151,7 +151,7 @@ xmlSecMSCryptoAppliedKeysMngrAdoptKeyStore(
return (-1) ;
}
return (0) ;
return 0 ;
}
int
@ -186,7 +186,7 @@ xmlSecMSCryptoAppliedKeysMngrAdoptTrustedStore(
return (-1) ;
}
return (0) ;
return 0 ;
}
int
@ -221,7 +221,7 @@ xmlSecMSCryptoAppliedKeysMngrAdoptUntrustedStore(
return (-1) ;
}
return (0) ;
return 0 ;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */