summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-05 13:44:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 06:47:06 +0100
commita2e3705d8b3b05ae664d54b762d6ff72927d5e48 (patch)
tree6ac31f9c9b419b12dbf065845a6941c143f57e2c /starmath
parentremove sal_IntPtr in OfaMSFilterTabPage2 (diff)
downloadcore-a2e3705d8b3b05ae664d54b762d6ff72927d5e48.tar.gz
core-a2e3705d8b3b05ae664d54b762d6ff72927d5e48.zip
loplugin:unnecessaryparen improve member expression
Change-Id: I304621018cb1e2a47e478e86df4229bcf2176741 Reviewed-on: https://gerrit.libreoffice.org/68757 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/dialog.cxx4
-rw-r--r--starmath/source/mathtype.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index f1ac1d6eec33..dea622fdad57 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1009,8 +1009,8 @@ bool SmShowSymbolSet::MouseButtonDown(const MouseEvent& rMEvt)
aOutputSize.AdjustWidth(nXOffset );
aOutputSize.AdjustHeight(nYOffset );
Point aPoint(rMEvt.GetPosPixel());
- aPoint.AdjustX( -(nXOffset) );
- aPoint.AdjustY( -(nYOffset) );
+ aPoint.AdjustX( -nXOffset );
+ aPoint.AdjustY( -nYOffset );
if (rMEvt.IsLeft() && tools::Rectangle(Point(0, 0), aOutputSize).IsInside(rMEvt.GetPosPixel()))
{
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 201034320fef..afedfc192e9b 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -3051,7 +3051,7 @@ void MathType::HandleMath(SmNode *pNode)
{
pS->WriteUChar( CHAR|0x20 );
}
- else if ((nPendingAttributes) &&
+ else if (nPendingAttributes &&
(i == ((pTemp->GetText().getLength()+1)/2)-1))
{
pS->WriteUChar( 0x22 );
@@ -3269,7 +3269,7 @@ void MathType::HandleText(SmNode *pNode)
SmTextNode *pTemp = static_cast<SmTextNode *>(pNode);
for(sal_Int32 i=0;i<pTemp->GetText().getLength();i++)
{
- if ((nPendingAttributes) &&
+ if (nPendingAttributes &&
(i == ((pTemp->GetText().getLength()+1)/2)-1))
{
pS->WriteUChar( 0x22 ); //char, with attributes right
@@ -3299,7 +3299,7 @@ void MathType::HandleText(SmNode *pNode)
//possible for starmath to place character attributes on
//entities which cannot occur in mathtype e.g. a Summation
//symbol so these attributes may be lost
- if ((nPendingAttributes) &&
+ if (nPendingAttributes &&
(i == ((pTemp->GetText().getLength()+1)/2)-1))
{
pS->WriteUChar( EMBEL );