summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-04-28 00:28:41 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-04-28 08:34:46 +0200
commit38e7f933c86b66010f65d821155eccd9e8a4135e (patch)
tree9b71f3b1927f66394af0ce1560388a6cb2daf96a /starmath
parentRemoved duplicated include (diff)
downloadcore-38e7f933c86b66010f65d821155eccd9e8a4135e.tar.gz
core-38e7f933c86b66010f65d821155eccd9e8a4135e.zip
tdf#120703 PVS: V581 ifs with identical conditions
V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Change-Id: I11fa13677c7980e6ac17fc4358406472ee784e41 Reviewed-on: https://gerrit.libreoffice.org/71446 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/visitors.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 1d063a7b7e0d..41872f478b4f 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -993,8 +993,7 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmOperNode* pNode )
//Set right on mpRightMost from pChild
mpRightMost->SetRight( bodyLeft );
}
- }
- if( pSubSup ) {
+
pChild = pSubSup->GetSubSup( LSUB );
if( pChild ) {
//Create position in front of pChild
@@ -1005,8 +1004,7 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmOperNode* pNode )
//Set right on mpRightMost from pChild
mpRightMost->SetRight( bodyLeft );
}
- }
- if( pSubSup ) {
+
pChild = pSubSup->GetSubSup( CSUP );
if ( pChild ) {//TO
//Create position in front of pChild
@@ -1017,8 +1015,7 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmOperNode* pNode )
//Set right on mpRightMost from pChild
mpRightMost->SetRight( bodyLeft );
}
- }
- if( pSubSup ) {
+
pChild = pSubSup->GetSubSup( CSUB );
if( pChild ) { //FROM
//Create position in front of pChild
@@ -1029,8 +1026,7 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmOperNode* pNode )
//Set right on mpRightMost from pChild
mpRightMost->SetRight( bodyLeft );
}
- }
- if( pSubSup ) {
+
pChild = pSubSup->GetSubSup( RSUP );
if ( pChild ) {
//Create position in front of pChild
@@ -1041,8 +1037,7 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmOperNode* pNode )
//Set right on mpRightMost from pChild
mpRightMost->SetRight( bodyLeft );
}
- }
- if( pSubSup ) {
+
pChild = pSubSup->GetSubSup( RSUB );
if ( pChild ) {
//Create position in front of pChild