mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
use using declarations (#1139)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
d42e8ed3fe
commit
110a253ba3
@ -51,8 +51,8 @@ template <class T>
|
||||
template <class TP> class List<T>::ListPrivate : public ListPrivateBase
|
||||
{
|
||||
public:
|
||||
ListPrivate() : ListPrivateBase() {}
|
||||
ListPrivate(const std::list<TP> &l) : ListPrivateBase(), list(l) {}
|
||||
using ListPrivateBase::ListPrivateBase;
|
||||
ListPrivate(const std::list<TP> &l) : list(l) {}
|
||||
void clear() {
|
||||
list.clear();
|
||||
}
|
||||
@ -63,11 +63,11 @@ public:
|
||||
// setAutoDelete() functionality.
|
||||
|
||||
template <class T>
|
||||
template <class TP> class List<T>::ListPrivate<TP *> : public ListPrivateBase
|
||||
template <class TP> class List<T>::ListPrivate<TP *> : public ListPrivateBase
|
||||
{
|
||||
public:
|
||||
ListPrivate() : ListPrivateBase() {}
|
||||
ListPrivate(const std::list<TP *> &l) : ListPrivateBase(), list(l) {}
|
||||
using ListPrivateBase::ListPrivateBase;
|
||||
ListPrivate(const std::list<TP *> &l) : list(l) {}
|
||||
~ListPrivate() {
|
||||
clear();
|
||||
}
|
||||
|
@ -154,8 +154,7 @@ private:
|
||||
class ByteReader : public ValueReader<unsigned char>
|
||||
{
|
||||
public:
|
||||
ByteReader(unsigned char &byte) : ValueReader<unsigned char>(byte) {}
|
||||
|
||||
using ValueReader::ValueReader;
|
||||
unsigned int read(TagLib::File &file, unsigned int limit) override
|
||||
{
|
||||
ByteVector data = file.readBlock(std::min(1U,limit));
|
||||
|
Loading…
Reference in New Issue
Block a user