From: Mathias Panzenböck Date: Mon, 1 Aug 2011 13:33:27 +0000 (+0200) Subject: use DATA() macro X-Git-Tag: v1.8beta~52^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11c993e9f0b29c5f3bf9df68d9f27b3dd1a21afe;p=taglib use DATA() macro --- diff --git a/taglib/toolkit/tbytevector.cpp b/taglib/toolkit/tbytevector.cpp index 623a8c37..5edbfbfe 100644 --- a/taglib/toolkit/tbytevector.cpp +++ b/taglib/toolkit/tbytevector.cpp @@ -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: