1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Introjucer saving optimisations.

This commit is contained in:
Julian Storer 2011-08-13 15:31:49 +01:00
parent e7ca7963f0
commit d3bcbeef9c
10 changed files with 69 additions and 57 deletions

View file

@ -689,12 +689,10 @@ bool File::appendData (const void* const dataToAppend,
{
if (numberOfBytes > 0)
{
const ScopedPointer <FileOutputStream> out (createOutputStream());
FileOutputStream out (*this, 8192);
if (out == 0)
return false;
out->write (dataToAppend, numberOfBytes);
return (! out.failedToOpen())
&& out.write (dataToAppend, numberOfBytes);
}
return true;