summaryrefslogtreecommitdiffstats
path: root/src/tools/ntqvaluelist.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-12 12:59:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-12 12:59:53 -0500
commitb47847259808cc29f6bf98b8c788603d0d21a038 (patch)
tree4ce7377f698a62b2c6e04ec50b70641730dcfa42 /src/tools/ntqvaluelist.h
parent9c2ce91a364c22f9b232eb40f3c2a392360ed21c (diff)
downloadtqt3-b47847259808cc29f6bf98b8c788603d0d21a038.tar.gz
tqt3-b47847259808cc29f6bf98b8c788603d0d21a038.zip
Automated update from Qt3
Diffstat (limited to 'src/tools/ntqvaluelist.h')
-rw-r--r--src/tools/ntqvaluelist.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/ntqvaluelist.h b/src/tools/ntqvaluelist.h
index b9fc73098..24a9cfc57 100644
--- a/src/tools/ntqvaluelist.h
+++ b/src/tools/ntqvaluelist.h
@@ -655,13 +655,11 @@ Q_INLINE_TEMPLATES TQDataStream& operator>>( TQDataStream& s, TQValueList<T>& l
l.clear();
TQ_UINT32 c;
s >> c;
- for( TQ_UINT32 i = 0; i < c; ++i )
+ for( TQ_UINT32 i = 0; i < c && !s.atEnd(); ++i )
{
T t;
s >> t;
l.append( t );
- if ( s.atEnd() )
- break;
}
return s;
}