coverity#1019311 Unchecked return value

Change-Id: I682ca0b62e6eb0d02113218de97d1440089b782c
This commit is contained in:
Caolán McNamara 2014-05-26 13:23:02 +01:00
parent e947342b9c
commit c6c135930c

View File

@ -155,7 +155,7 @@ public:
void dump(CppuOptions const & options); void dump(CppuOptions const & options);
void dumpFile( bool dumpFile(
OUString const & uri, OUString const & name, bool hpp, OUString const & uri, OUString const & name, bool hpp,
CppuOptions const & options); CppuOptions const & options);
@ -388,7 +388,7 @@ void CppuType::dump(CppuOptions const & options) {
options.isValid("-O") ? b2u(options.getOption("-O")) : "", options); options.isValid("-O") ? b2u(options.getOption("-O")) : "", options);
} }
void CppuType::dumpFile( bool CppuType::dumpFile(
OUString const & uri, OUString const & name, bool hpp, OUString const & uri, OUString const & name, bool hpp,
CppuOptions const & options) CppuOptions const & options)
{ {
@ -400,7 +400,7 @@ void CppuType::dumpFile(
} }
bool exists = fileExists(u2b(fileUri)); bool exists = fileExists(u2b(fileUri));
if (exists && options.isValid("-G")) { if (exists && options.isValid("-G")) {
return; return false;
} }
FileStream out; FileStream out;
out.createTempFile(getTempDir(u2b(fileUri))); out.createTempFile(getTempDir(u2b(fileUri)));
@ -427,7 +427,7 @@ void CppuType::dumpFile(
throw; throw;
} }
out.close(); out.close();
makeValidTypeFile( return makeValidTypeFile(
u2b(fileUri), u2b(tmpUri), exists && options.isValid("-Gc")); u2b(fileUri), u2b(tmpUri), exists && options.isValid("-Gc"));
} }