Kaydet (Commit) 553fcbbb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:unnecessaryparen (clang-cl)

Change-Id: I0cd14e0ace9c9d2fcd880477b0485295e3010b71
Reviewed-on: https://gerrit.libreoffice.org/67138
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 8da8cc3c
......@@ -134,7 +134,7 @@ namespace dxcanvas
{
const Size aSize = xVirtualDevice->GetFontMetric( aFont ).GetFontSize();
const double fDividend( rFontMatrix.m10 + rFontMatrix.m11 );
double fStretch = (rFontMatrix.m00 + rFontMatrix.m01);
double fStretch = rFontMatrix.m00 + rFontMatrix.m01;
if( !::basegfx::fTools::equalZero( fDividend) )
fStretch /= fDividend;
......@@ -264,7 +264,7 @@ namespace dxcanvas
{
const Size aSize = xVirtualDevice->GetFontMetric( aFont ).GetFontSize();
const double fDividend( rFontMatrix.m10 + rFontMatrix.m11 );
double fStretch = (rFontMatrix.m00 + rFontMatrix.m01);
double fStretch = rFontMatrix.m00 + rFontMatrix.m01;
if( !::basegfx::fTools::equalZero( fDividend) )
fStretch /= fDividend;
......
......@@ -425,7 +425,7 @@ void VistaFilePickerImpl::impl_sta_getCurrentFilter(const RequestRef& rRequest)
::osl::ResettableMutexGuard aLock(m_aMutex);
OUString sTitle;
::sal_Int32 nRealIndex = (nIndex-1); // COM dialog base on 1 ... filter container on 0 .-)
::sal_Int32 nRealIndex = nIndex-1; // COM dialog base on 1 ... filter container on 0 .-)
if (
(nRealIndex >= 0 ) &&
(m_lFilters.getFilterNameByIndex(nRealIndex, sTitle))
......@@ -1002,7 +1002,7 @@ void VistaFilePickerImpl::impl_sta_ShowDialogModal(const RequestRef& rRequest)
if ( SUCCEEDED(hResult) && nFileType > 0 )
{
// COM dialog base on 1 ... filter container on 0 .-)
::size_t nRealIndex = (nFileType-1);
::size_t nRealIndex = nFileType-1;
OUString sFilter;
if (m_lFilters.getFilterByIndex(nRealIndex, sFilter))
{
......
......@@ -312,7 +312,7 @@ oslFileError FileHandle_Impl::readFileAt(
for (*pBytesRead = 0; nBytesRequested > 0;)
{
LONGLONG const bufptr = (nOffset / m_bufsiz) * m_bufsiz;
SIZE_T const bufpos = (nOffset % m_bufsiz);
SIZE_T const bufpos = nOffset % m_bufsiz;
if (bufptr != m_bufptr)
{
......@@ -391,7 +391,7 @@ oslFileError FileHandle_Impl::writeFileAt(
for (*pBytesWritten = 0; nBytesToWrite > 0;)
{
LONGLONG const bufptr = (nOffset / m_bufsiz) * m_bufsiz;
SIZE_T const bufpos = (nOffset % m_bufsiz);
SIZE_T const bufpos = nOffset % m_bufsiz;
if (bufptr != m_bufptr)
{
// flush current buffer
......
......@@ -139,7 +139,7 @@ std::wstring iso8601_duration_to_local_duration(const std::wstring& iso8601durat
if (days.length() > 0)
{
int h = ((_wtoi(days.c_str()) * 24) + _wtoi(hours.c_str()));
int h = (_wtoi(days.c_str()) * 24) + _wtoi(hours.c_str());
wchar_t buff[10];
_itow(h, buff, 10);
hours = buff;
......
......@@ -64,11 +64,11 @@ static const sal_Int64 SAL_INT64_MIN =
/* MS Visual C++ no conversion from unsigned __int64 to double */
#ifdef _MSC_VER
static const double DOUBLE_SAL_UINT64_MAX = (((double(SAL_INT64_MAX)) * 2) + 1);
static const double DOUBLE_SAL_UINT64_MAX = ((double(SAL_INT64_MAX)) * 2) + 1;
static double unsigned_int64_to_double( sal_uInt64 n )
{
sal_uInt64 n2 = (n / 3);
sal_uInt64 n2 = n / 3;
n -= (2 * n2);
return (static_cast<double>(static_cast<sal_Int64>(n2)) * 2.0) + static_cast<double>(static_cast<sal_Int64>(n));
}
......
......@@ -343,7 +343,7 @@ void SvFileStream::Open( const OUString& rFilename, StreamMode nMode )
ErrCode nErr = ::GetSvError( GetLastError() );
if(nErr==SVSTREAM_ACCESS_DENIED || nErr==SVSTREAM_SHARING_VIOLATION)
{
nMode &= (~StreamMode::WRITE);
nMode &= ~StreamMode::WRITE;
nAccessMode = GENERIC_READ;
// OV, 28.1.97: Win32 sets file to length 0
// if Openaction is CREATE_ALWAYS
......
......@@ -397,7 +397,7 @@ static bool ImplUpdateSalJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSe
if ( pInst && pVisibleDlgParent )
nMutexCount = pInst->ReleaseYieldMutexAll();
BYTE* pOutDevMode = (reinterpret_cast<BYTE*>(pOutBuffer) + pOutBuffer->mnDriverOffset);
BYTE* pOutDevMode = reinterpret_cast<BYTE*>(pOutBuffer) + pOutBuffer->mnDriverOffset;
nRet = DocumentPropertiesW( hWnd, hPrn,
pPrinterNameW,
reinterpret_cast<LPDEVMODEW>(pOutDevMode), reinterpret_cast<LPDEVMODEW>(const_cast<BYTE *>(pInBuffer)), nMode );
......
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