Kaydet (Commit) 368f806a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:unnecessaryparen (clang-cl)

Change-Id: I3a2b7ed3fdef3b77c0a052b10f88918aa616779e
Reviewed-on: https://gerrit.libreoffice.org/45469Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst bdfbc91c
......@@ -194,7 +194,7 @@ namespace dxcanvas
void SpriteDeviceHelper::resizeBackBuffer( const ::basegfx::B2ISize& rNewSize )
{
// disposed?
if(!(mpBackBuffer))
if(!mpBackBuffer)
return;
mpBackBuffer->resize(rNewSize);
......
......@@ -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));
}
......
......@@ -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) */
}
......
......@@ -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;
......
......@@ -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;
......
......@@ -204,7 +204,7 @@ found:
if ( pItem )
pTopic->aItem = pItem->GetName();
else
(pTopic->aItem).clear();
pTopic->aItem.clear();
bool bRes = false;
switch( nCode )
......
......@@ -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()));
}
......
......@@ -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: */
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