summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
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)