summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-18 08:27:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-18 09:46:28 +0200
commit5fb66ae5595b7435e8954df31473fad15a74b8c2 (patch)
tree3b3f0ce3eafa10557a7e78b10851c97ee16c7ebf /idlc
parent181a1b36ac728e3a43e054496ceb53fd3315abdb (diff)
clang-tidy readability-simplify-boolean-expr
Change-Id: I78fa01a6c803dec782488490b730af3a11814d64 Reviewed-on: https://gerrit.libreoffice.org/61902 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/fehelper.cxx5
-rw-r--r--idlc/source/idlccompile.cxx4
2 files changed, 2 insertions, 7 deletions
diff --git a/idlc/source/fehelper.cxx b/idlc/source/fehelper.cxx
index 02f0e8b4799c..a147d3d26e1a 100644
--- a/idlc/source/fehelper.cxx
+++ b/idlc/source/fehelper.cxx
@@ -37,10 +37,7 @@ bool FeDeclarator::checkType(AstDeclaration const * type) const
if( count != -1 )
tmp = m_name.copy( count+1 );
- if (tmp == type->getLocalName())
- return false;
- else
- return true;
+ return tmp != type->getLocalName();
}
AstType const * FeDeclarator::compose(AstDeclaration const * pDecl)
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index 5a16c9fadc49..9f287c836d7f 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -53,9 +53,7 @@ static sal_Char tmpFilePattern[512];
bool isFileUrl(const OString& fileName)
{
- if (fileName.startsWith("file://") )
- return true;
- return false;
+ return fileName.startsWith("file://");
}
OString convertToAbsoluteSystemPath(const OString& fileName)