author | erik <erik> | 2007-01-19 01:18:01 (UTC) |
---|---|---|
committer | erik <erik> | 2007-01-19 01:18:01 (UTC) |
commit | 32343107b30904806d02672955c57ed53d39fe79 (patch) (unidiff) | |
tree | 9114a0ea170e3adc807a2445b49360f1bfde9626 /library | |
parent | ac0ce844e90a64247c0adb210e0a23021b011d57 (diff) | |
download | opie-32343107b30904806d02672955c57ed53d39fe79.zip opie-32343107b30904806d02672955c57ed53d39fe79.tar.gz opie-32343107b30904806d02672955c57ed53d39fe79.tar.bz2 |
Every file in this commit has a change to check the return value of a call.
-rw-r--r-- | library/global.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/global.cpp b/library/global.cpp index f7a0767..7bdd0b1 100644 --- a/library/global.cpp +++ b/library/global.cpp | |||
@@ -242,14 +242,13 @@ const QDawg& Global::fixedDawg() | |||
242 | QFile in(fn); | 242 | QFile in(fn); |
243 | if ( in.open(IO_ReadOnly) ) { | 243 | if ( in.open(IO_ReadOnly) ) { |
244 | fixed_dawg->createFromWords(&in); | 244 | fixed_dawg->createFromWords(&in); |
245 | dawgfile.open(IO_WriteOnly); | 245 | if (dawgfile.open(IO_WriteOnly)) |
246 | fixed_dawg->write(&dawgfile); | 246 | fixed_dawg->write(&dawgfile); |
247 | dawgfile.close(); | 247 | dawgfile.close(); |
248 | } | 248 | } |
249 | } else { | 249 | } else |
250 | fixed_dawg->readFile(dawgfilename); | 250 | fixed_dawg->readFile(dawgfilename); |
251 | } | 251 | } |
252 | } | ||
253 | 252 | ||
254 | return *fixed_dawg; | 253 | return *fixed_dawg; |
255 | } | 254 | } |