From: Tsuda Kageyu Date: Wed, 26 Aug 2015 07:38:06 +0000 (+0900) Subject: Consistent notations between ByteVector::data() and at(). X-Git-Tag: v1.11beta~131^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10e1fcd686e4aebc008d1046b65d603a9af3353c;p=taglib Consistent notations between ByteVector::data() and at(). --- diff --git a/taglib/toolkit/tbytevector.cpp b/taglib/toolkit/tbytevector.cpp index 636a1a34..d2464974 100644 --- a/taglib/toolkit/tbytevector.cpp +++ b/taglib/toolkit/tbytevector.cpp @@ -451,12 +451,12 @@ ByteVector &ByteVector::setData(const char *data) char *ByteVector::data() { detach(); - return (size() > 0) ? (&d->data->front() + d->offset) : 0; + return (size() > 0) ? (&(*d->data)[d->offset]) : 0; } const char *ByteVector::data() const { - return (size() > 0) ? (&d->data->front() + d->offset) : 0; + return (size() > 0) ? (&(*d->data)[d->offset]) : 0; } ByteVector ByteVector::mid(uint index, uint length) const