src/testlib/qplaintestlogger.cpp
changeset 25 e24348a560a6
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
23:89e065397ea6 25:e24348a560a6
   179             for (int i = 0; i < ptr.Length(); i += maxBlockSize) {
   179             for (int i = 0; i < ptr.Length(); i += maxBlockSize) {
   180                 int size = Min(maxBlockSize, ptr.Length() - i);
   180                 int size = Min(maxBlockSize, ptr.Length() - i);
   181                 hbuffer->Des().Copy(ptr.Mid(i, size));
   181                 hbuffer->Des().Copy(ptr.Mid(i, size));
   182                 RDebug::Print(format, hbuffer);
   182                 RDebug::Print(format, hbuffer);
   183             }
   183             }
       
   184             delete hbuffer;
   184         }
   185         }
   185         else {
   186         else {
   186             // fast, no allocations, but truncates silently
   187             // fast, no allocations, but truncates silently
   187             RDebug::RawPrint(format);
   188             RDebug::RawPrint(format);
   188             TPtrC8 ptr(reinterpret_cast<const TUint8*>(str));
   189             TPtrC8 ptr(reinterpret_cast<const TUint8*>(str));