From 10e1fcd686e4aebc008d1046b65d603a9af3353c Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Wed, 26 Aug 2015 16:38:06 +0900 Subject: [PATCH] Consistent notations between ByteVector::data() and at(). --- taglib/toolkit/tbytevector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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