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:
parent
391e99443e
commit
c586e91c7f
2 changed files with 4 additions and 5 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue