mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Consistent notations between ByteVector::data() and at().
This commit is contained in:
parent
3bce77a359
commit
10e1fcd686
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user