1
0
Fork 0
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:
jules 2017-04-07 11:24:35 +01:00
parent 8b0354ff69
commit fbee2788ee

View file

@ -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,