Fix code style and errors
This commit is contained in:
4
3rdparty/taglib/toolkit/tbytevectorlist.cpp
vendored
4
3rdparty/taglib/toolkit/tbytevectorlist.cpp
vendored
@@ -70,7 +70,9 @@ ByteVectorList ByteVectorList::split(const ByteVector &v, const ByteVector &patt
|
||||
// public members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ByteVectorList::ByteVectorList() : List<ByteVector>()
|
||||
ByteVectorList::ByteVectorList() :
|
||||
List<ByteVector>(),
|
||||
d(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ using namespace TagLib;
|
||||
class ByteVectorStream::ByteVectorStreamPrivate
|
||||
{
|
||||
public:
|
||||
ByteVectorStreamPrivate(const ByteVector &data);
|
||||
explicit ByteVectorStreamPrivate(const ByteVector &data);
|
||||
|
||||
ByteVector data;
|
||||
long position;
|
||||
|
||||
2
3rdparty/taglib/toolkit/tfile.cpp
vendored
2
3rdparty/taglib/toolkit/tfile.cpp
vendored
@@ -91,7 +91,7 @@ public:
|
||||
// public members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
File::File(FileName fileName) :
|
||||
File::File(const FileName fileName) :
|
||||
d(new FilePrivate(new FileStream(fileName), true))
|
||||
{
|
||||
}
|
||||
|
||||
4
3rdparty/taglib/toolkit/tfilestream.cpp
vendored
4
3rdparty/taglib/toolkit/tfilestream.cpp
vendored
@@ -90,7 +90,7 @@ namespace
|
||||
|
||||
struct FileNameHandle : public std::string
|
||||
{
|
||||
FileNameHandle(FileName name) : std::string(name) {}
|
||||
explicit FileNameHandle(FileName name) : std::string(name) {}
|
||||
operator FileName () const { return c_str(); }
|
||||
};
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace
|
||||
class FileStream::FileStreamPrivate
|
||||
{
|
||||
public:
|
||||
FileStreamPrivate(const FileName &fileName)
|
||||
explicit FileStreamPrivate(const FileName &fileName)
|
||||
: file(InvalidFileHandle)
|
||||
, name(fileName)
|
||||
, readOnly(true)
|
||||
|
||||
12
3rdparty/taglib/toolkit/tstringlist.cpp
vendored
12
3rdparty/taglib/toolkit/tstringlist.cpp
vendored
@@ -55,17 +55,23 @@ StringList StringList::split(const String &s, const String &pattern)
|
||||
// public members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
StringList::StringList() : List<String>()
|
||||
StringList::StringList() :
|
||||
List<String>(),
|
||||
d(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
StringList::StringList(const StringList &l) : List<String>(l)
|
||||
StringList::StringList(const StringList &l) :
|
||||
List<String>(l),
|
||||
d(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
StringList::StringList(const String &s) : List<String>()
|
||||
StringList::StringList(const String &s) :
|
||||
List<String>(),
|
||||
d(nullptr)
|
||||
{
|
||||
append(s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user