@@ -194,7 +194,7 @@ class CachedMFCFileOutputStream : public OutputStream
194194 return (numBytes);
195195 };
196196 virtual void flush (void ) {
197- while (m_cachedChunks.size () != 0 )// !m_cachedChunks.empty())
197+ while (! m_cachedChunks.empty () )// !m_cachedChunks.empty())
198198 {
199199 CachedChunk c = m_cachedChunks.front ();
200200 m_cachedChunks.pop_front ();
@@ -232,7 +232,7 @@ class CompressedCachedMFCFileOutputStream : public OutputStream
232232 return ;
233233 UnsignedByte *srcBuffer = NEW UnsignedByte[m_totalBytes];
234234 UnsignedByte *insertPos = srcBuffer;
235- while (m_cachedChunks.size () != 0 )
235+ while (! m_cachedChunks.empty () )
236236 {
237237 CachedChunk c = m_cachedChunks.front ();
238238 m_cachedChunks.pop_front ();
@@ -1474,7 +1474,7 @@ Bool CWorldBuilderDoc::getAllIndexesInRect(const Coord3D* bl, const Coord3D* br,
14741474 FindIndexNearest (this , ¢er, &ndx, PREFER_BOTTOM);
14751475 AddUniqueAndNeighbors (this , bl, br, tl, tr, ndx, allIndices);
14761476
1477- return (allIndices->size () > 0 );
1477+ return (! allIndices->empty () );
14781478}
14791479
14801480
@@ -2245,7 +2245,7 @@ void CWorldBuilderDoc::OnDumpDocToText(void)
22452245
22462246 fprintf (theLogFile, " Total Map Objects (with ThingTemplates): %d\n " , totalObjectCount);
22472247
2248- while (mapOfTemplates.size () > 0 ) {
2248+ while (! mapOfTemplates.empty () ) {
22492249 std::map<AsciiString, Int>::iterator storedIt = mapOfTemplates.begin ();
22502250
22512251 for (it = mapOfTemplates.begin (); it != mapOfTemplates.end (); ++it) {
0 commit comments