use DATA() macro

This commit is contained in:
Mathias Panzenböck 2011-08-01 15:33:27 +02:00
parent 3b14dc3e94
commit 11c993e9f0

View File

@ -463,7 +463,7 @@ ByteVector &ByteVector::replace(const ByteVector &pattern, const ByteVector &wit
// new private data of appropriate size:
ByteVectorPrivate *newData = new ByteVectorPrivate(newSize, 0);
char *target = &newData->data[0];
char *target = DATA(newData);
const char *source = data();
// copy modified data into new private data: