diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-25 16:11:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-25 16:11:32 +0200 |
commit | bb11009aba7a12dd23da4e0f64008c1063fc6652 (patch) | |
tree | bcae8d811c5cdf264307a2ed8c1579c3a11ecb84 /svx | |
parent | 0dd209b08189f1da6ccc80984f195baa1abb303c (diff) |
Remove unnecessary invalid downcasts
Change-Id: I04a6fa07ef4dfd2609b466c7c8ff9ba925c9683c
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx index 00185bfa2af0..e62086d9191b 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx @@ -629,14 +629,14 @@ public: else if ( mpSecondArg->isConstant() && (*mpSecondArg)() == 1 ) aRet = mpFirstArg->fillNode( rEquations, NULL, nFlags ); else if ( ( mpFirstArg->getType() == BINARY_FUNC_DIV ) // don't care of (pi/180) - && ( ((BinaryFunctionExpression*)((BinaryFunctionExpression*)mpFirstArg.get())->mpFirstArg.get())->getType() == ENUM_FUNC_PI ) - && ( ((BinaryFunctionExpression*)((BinaryFunctionExpression*)mpFirstArg.get())->mpSecondArg.get())->getType() == FUNC_CONST ) ) + && ( ((BinaryFunctionExpression*)mpFirstArg.get())->mpFirstArg.get()->getType() == ENUM_FUNC_PI ) + && ( ((BinaryFunctionExpression*)mpFirstArg.get())->mpSecondArg.get()->getType() == FUNC_CONST ) ) { aRet = mpSecondArg->fillNode( rEquations, NULL, nFlags ); } else if ( ( mpSecondArg->getType() == BINARY_FUNC_DIV ) // don't care of (pi/180) - && ( ((BinaryFunctionExpression*)((BinaryFunctionExpression*)mpSecondArg.get())->mpFirstArg.get())->getType() == ENUM_FUNC_PI ) - && ( ((BinaryFunctionExpression*)((BinaryFunctionExpression*)mpSecondArg.get())->mpSecondArg.get())->getType() == FUNC_CONST ) ) + && ( ((BinaryFunctionExpression*)mpSecondArg.get())->mpFirstArg.get()->getType() == ENUM_FUNC_PI ) + && ( ((BinaryFunctionExpression*)mpSecondArg.get())->mpSecondArg.get()->getType() == FUNC_CONST ) ) { aRet = mpFirstArg->fillNode( rEquations, NULL, nFlags ); } |