summaryrefslogtreecommitdiff
path: root/basic/source/runtime/methods.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:07:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:07:14 +0100
commit3a40d3de89f0b1252974c98e5a5382d6eca67025 (patch)
tree29f476f89e222b4e8a7ca72a2c8ded3631deeb7d /basic/source/runtime/methods.cxx
parent0cad6d02070ebab995611e8c8125e11e3f7c4836 (diff)
More loplugin:cstylecast: basic
Change-Id: I0bb219632da384ab047a2b1fc3f2b041dacaf2cb
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r--basic/source/runtime/methods.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 05adf06d3049..17ee2b4f969d 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -2971,15 +2971,15 @@ void SbRtl_GetAttr(StarBASIC * pBasic, SbxArray & rPar, bool bWrite)
bool bDirectory = xSFI->isFolder( aPath );
if( bReadOnly )
{
- nFlags |= (sal_uInt16)SbAttributes::READONLY;
+ nFlags |= sal_uInt16(SbAttributes::READONLY);
}
if( bHidden )
{
- nFlags |= (sal_uInt16)SbAttributes::HIDDEN;
+ nFlags |= sal_uInt16(SbAttributes::HIDDEN);
}
if( bDirectory )
{
- nFlags |= (sal_uInt16)SbAttributes::DIRECTORY;
+ nFlags |= sal_uInt16(SbAttributes::DIRECTORY);
}
}
catch(const Exception & )
@@ -3001,11 +3001,11 @@ void SbRtl_GetAttr(StarBASIC * pBasic, SbxArray & rPar, bool bWrite)
bool bDirectory = isFolder( aType );
if( bReadOnly )
{
- nFlags |= (sal_uInt16)SbAttributes::READONLY;
+ nFlags |= sal_uInt16(SbAttributes::READONLY);
}
if( bDirectory )
{
- nFlags |= (sal_uInt16)SbAttributes::DIRECTORY;
+ nFlags |= sal_uInt16(SbAttributes::DIRECTORY);
}
}
rPar.Get(0)->PutInteger( nFlags );
@@ -3150,7 +3150,7 @@ void SbRtl_FileAttr(StarBASIC *, SbxArray & rPar, bool)
sal_Int16 nRet;
if ( rPar.Get(2)->GetInteger() == 1 )
{
- nRet = (sal_Int16)(pSbStrm->GetMode());
+ nRet = static_cast<sal_Int16>(pSbStrm->GetMode());
}
else
{