1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ValueTree constness tweak.

This commit is contained in:
jules 2012-07-15 16:15:01 +01:00
parent 391e99443e
commit c586e91c7f
2 changed files with 4 additions and 5 deletions

View file

@ -972,7 +972,7 @@ ValueTree ValueTree::fromXml (const XmlElement& xml)
}
//==============================================================================
void ValueTree::writeToStream (OutputStream& output)
void ValueTree::writeToStream (OutputStream& output) const
{
SharedObject::writeObjectToStream (output, object);
}
@ -994,8 +994,7 @@ ValueTree ValueTree::readFromStream (InputStream& input)
return v;
}
int i;
for (i = 0; i < numProps; ++i)
for (int i = 0; i < numProps; ++i)
{
const String name (input.readString());
jassert (name.isNotEmpty());
@ -1005,7 +1004,7 @@ ValueTree ValueTree::readFromStream (InputStream& input)
const int numChildren = input.readCompressedInt();
for (i = 0; i < numChildren; ++i)
for (int i = 0; i < numChildren; ++i)
{
ValueTree child (readFromStream (input));