diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 13:23:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:51:56 +0100 |
commit | c6c135930c66d2465dcdfbb34ecb2d1abff735c6 (patch) | |
tree | 2a0f13655cd916943557c01b6560e6d55c505c2d /codemaker | |
parent | e947342b9c4ffaef8e25e2763e60cbc67e6fa36c (diff) |
coverity#1019311 Unchecked return value
Change-Id: I682ca0b62e6eb0d02113218de97d1440089b782c
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 850c95dca616..00b2ee3e1011 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -155,7 +155,7 @@ public: void dump(CppuOptions const & options); - void dumpFile( + bool dumpFile( OUString const & uri, OUString const & name, bool hpp, CppuOptions const & options); @@ -388,7 +388,7 @@ void CppuType::dump(CppuOptions const & options) { options.isValid("-O") ? b2u(options.getOption("-O")) : "", options); } -void CppuType::dumpFile( +bool CppuType::dumpFile( OUString const & uri, OUString const & name, bool hpp, CppuOptions const & options) { @@ -400,7 +400,7 @@ void CppuType::dumpFile( } bool exists = fileExists(u2b(fileUri)); if (exists && options.isValid("-G")) { - return; + return false; } FileStream out; out.createTempFile(getTempDir(u2b(fileUri))); @@ -427,7 +427,7 @@ void CppuType::dumpFile( throw; } out.close(); - makeValidTypeFile( + return makeValidTypeFile( u2b(fileUri), u2b(tmpUri), exists && options.isValid("-Gc")); } |