Kaydet (Commit) 0f86834b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove redundant explicit up-casts

Change-Id: I58fd91354fe41673216674f5ae9c11c17cb3f29d
üst 71c49bcf
......@@ -1713,7 +1713,7 @@ void SbiRuntime::StepPUT()
// store on its own method (inside a function)?
bool bFlagsChanged = false;
SbxFlagBits n = SBX_NONE;
if( refVar.get() == static_cast<SbxVariable*>(pMeth) )
if( refVar.get() == pMeth )
{
bFlagsChanged = true;
n = refVar->GetFlags();
......@@ -1865,7 +1865,7 @@ void SbiRuntime::StepSET_Impl( SbxVariableRef& refVal, SbxVariableRef& refVar, b
{
bool bFlagsChanged = false;
SbxFlagBits n = SBX_NONE;
if( refVar.get() == static_cast<SbxVariable*>(pMeth) )
if( refVar.get() == pMeth )
{
bFlagsChanged = true;
n = refVar->GetFlags();
......@@ -2066,7 +2066,7 @@ void SbiRuntime::StepLSET()
else
{
SbxFlagBits n = refVar->GetFlags();
if( refVar.get() == static_cast<SbxVariable*>(pMeth) )
if( refVar.get() == pMeth )
{
refVar->SetFlag( SBX_WRITE );
}
......@@ -2102,7 +2102,7 @@ void SbiRuntime::StepRSET()
else
{
SbxFlagBits n = refVar->GetFlags();
if( refVar.get() == static_cast<SbxVariable*>(pMeth) )
if( refVar.get() == pMeth )
{
refVar->SetFlag( SBX_WRITE );
}
......
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