mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Made File::appendText return false if the write failed
This commit is contained in:
parent
8b0354ff69
commit
fbee2788ee
1 changed files with 1 additions and 2 deletions
|
|
@ -770,8 +770,7 @@ bool File::appendText (const String& text,
|
|||
if (out.failedToOpen())
|
||||
return false;
|
||||
|
||||
out.writeText (text, asUnicode, writeUnicodeHeaderBytes);
|
||||
return true;
|
||||
return out.writeText (text, asUnicode, writeUnicodeHeaderBytes);
|
||||
}
|
||||
|
||||
bool File::replaceWithText (const String& textToWrite,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue