summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 08:32:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 11:08:48 +0200
commit4b2262ab5b10f334f1984fec84d2978db81c58f1 (patch)
treede56663eba6ed2edf7a26127339dd8563fdf47be /starmath
parentec1de6895d84fbe4f2d5fb7135a59a918138d970 (diff)
new loplugin unnecessaryparen
Change-Id: Ic883a07b30069ca6342d7521c8ad890f4326f0ec Reviewed-on: https://gerrit.libreoffice.org/39549 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathmlimport.cxx4
-rw-r--r--starmath/source/mathtype.cxx7
-rw-r--r--starmath/source/smmod.cxx2
3 files changed, 7 insertions, 6 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 527b97e3aa1a..a7a34012d99e 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -2832,8 +2832,8 @@ SvXMLImportContext *SmXMLImport::CreateContext(sal_uInt16 nPrefix,
{
if ( XML_NAMESPACE_OFFICE == nPrefix )
{
- if ( (IsXMLToken(rLocalName, XML_DOCUMENT) ||
- IsXMLToken(rLocalName, XML_DOCUMENT_META)))
+ if ( IsXMLToken(rLocalName, XML_DOCUMENT) ||
+ IsXMLToken(rLocalName, XML_DOCUMENT_META) )
{
uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
GetModel(), uno::UNO_QUERY_THROW);
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index be6edef032b5..819015fd5b9c 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1643,8 +1643,9 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector,
rRet.clear();
newline--;
}
- else if ((nPart == 2) || ((((nPart == 1) &&
- (nVariation == 0)) || (nVariation == 1))))
+ else if ((nPart == 2) ||
+ ((nPart == 1) && (nVariation == 0)) ||
+ (nVariation == 1))
{
sPush+=rRet;
rRet = sPush;
@@ -2703,7 +2704,7 @@ bool MathType::HandleTemplate(int nLevel, sal_uInt8 &rSelector,
{
OSL_ENSURE(nOption < 2,"Option out of range");
}
- else if (/*(rSelector >= 0) &&*/ (rSelector <=12))
+ else if (rSelector <= 12)
{
OSL_ENSURE(nOption < 3,"Option out of range");
}
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx
index 0c705b7418d5..54001bb65bbc 100644
--- a/starmath/source/smmod.cxx
+++ b/starmath/source/smmod.cxx
@@ -165,7 +165,7 @@ void SmModule::ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg )
SfxViewShell* pViewShell = SfxViewShell::GetFirst();
while (pViewShell)
{
- if ((dynamic_cast<const SmViewShell *>(pViewShell) != nullptr))
+ if (dynamic_cast<const SmViewShell *>(pViewShell) != nullptr)
{
SmViewShell *pSmView = static_cast<SmViewShell *>(pViewShell);
pSmView->GetGraphicWindow().ApplyColorConfigValues( rColorCfg );