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:
parent
e7ca7963f0
commit
d3bcbeef9c
10 changed files with 69 additions and 57 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue