summaryrefslogtreecommitdiffstats
path: root/codemaker/source/codemaker/global.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker/source/codemaker/global.cxx')
-rw-r--r--codemaker/source/codemaker/global.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index 8eb506e10e51..e9a9b8f415c1 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -214,10 +214,7 @@ bool makeValidTypeFile(const OString& targetFileName, const OString& tmpFileName
bool removeTypeFile(const OString& fileName)
{
- if ( !unlink(fileName.getStr()) )
- return true;
-
- return false;
+ return unlink(fileName.getStr()) == 0;
}
OUString convertToFileUrl(const OString& fileName)
@@ -269,10 +266,7 @@ FileStream::~FileStream()
bool FileStream::isValid() const
{
- if ( m_file )
- return true;
-
- return false;
+ return m_file != nullptr;
}
void FileStream::createTempFile(const OString& sPath)