Kaydet (Commit) 742e38ea authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improved loplugin:redundantcast (const-qualified typedefs): basic

Change-Id: Ie22fe58dc2c2cc3867bd800f757433b68e0f2448
Reviewed-on: https://gerrit.libreoffice.org/56693
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e6c43ed9
......@@ -45,7 +45,7 @@ start:
nRes = static_cast<sal_uInt8>(p->nChar);
break;
case SbxBYTE:
nRes = static_cast<sal_uInt8>(p->nByte); break;
nRes = p->nByte; break;
case SbxINTEGER:
case SbxBOOL:
if( p->nInteger > SbxMAXBYTE )
......
......@@ -86,7 +86,7 @@ start:
break;
case SbxCURRENCY:
{
sal_Int64 tstVal = static_cast<sal_Int64>(p->nInt64) / sal_Int64(CURRENCY_FACTOR);
sal_Int64 tstVal = p->nInt64 / sal_Int64(CURRENCY_FACTOR);
if( tstVal > SbxMAXINT )
{
......
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