small optimization to the osgb/t serializers.

This commit is contained in:
Pjotr Svetachov
2016-05-31 11:27:30 +01:00
committed by Robert Osfield
parent 60c3998143
commit 1823341cce

View File

@@ -949,6 +949,7 @@ public:
if ( is.isBinary() )
{
is >> size;
list.reserve(size);
for ( unsigned int i=0; i<size; ++i )
{
ValueType value;
@@ -960,6 +961,7 @@ public:
else if ( is.matchString(_name) )
{
is >> size;
list.reserve(size);
if ( size>0 ) is >> is.BEGIN_BRACKET;
for ( unsigned int i=0; i<size; ++i )
{
@@ -1104,6 +1106,7 @@ public:
if ( is.isBinary() )
{
is >> size;
list.reserve(size);
for ( unsigned int i=0; i<size; ++i )
{
ValueType value;
@@ -1114,6 +1117,7 @@ public:
else if ( is.matchString(_name) )
{
is >> size;
list.reserve(size);
if ( size>0 ) is >> is.BEGIN_BRACKET;
for ( unsigned int i=0; i<size; ++i )
{