taglib: Fix some formatting
This commit is contained in:
6
3rdparty/taglib/mpeg/mpegfile.cpp
vendored
6
3rdparty/taglib/mpeg/mpegfile.cpp
vendored
@@ -40,9 +40,11 @@
|
|||||||
using namespace Strawberry_TagLib::TagLib;
|
using namespace Strawberry_TagLib::TagLib;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
enum { ID3v2Index = 0,
|
enum {
|
||||||
|
ID3v2Index = 0,
|
||||||
APEIndex = 1,
|
APEIndex = 1,
|
||||||
ID3v1Index = 2 };
|
ID3v1Index = 2
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
class MPEG::File::FilePrivate {
|
class MPEG::File::FilePrivate {
|
||||||
|
|||||||
10
3rdparty/taglib/toolkit/tfile.cpp
vendored
10
3rdparty/taglib/toolkit/tfile.cpp
vendored
@@ -70,14 +70,14 @@ using namespace Strawberry_TagLib::TagLib;
|
|||||||
|
|
||||||
class File::FilePrivate {
|
class File::FilePrivate {
|
||||||
public:
|
public:
|
||||||
FilePrivate(IOStream* _stream, bool _owner) : stream(_stream), streamOwner(_owner), valid(true) {}
|
FilePrivate(IOStream *_stream, bool _owner) : stream(_stream), streamOwner(_owner), valid(true) {}
|
||||||
|
|
||||||
~FilePrivate() {
|
~FilePrivate() {
|
||||||
if (streamOwner)
|
if (streamOwner)
|
||||||
delete stream;
|
delete stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
IOStream* stream;
|
IOStream *stream;
|
||||||
bool streamOwner;
|
bool streamOwner;
|
||||||
bool valid;
|
bool valid;
|
||||||
};
|
};
|
||||||
@@ -88,7 +88,7 @@ class File::FilePrivate {
|
|||||||
|
|
||||||
File::File(const FileName fileName) : d(new FilePrivate(new FileStream(fileName), true)) {}
|
File::File(const FileName fileName) : d(new FilePrivate(new FileStream(fileName), true)) {}
|
||||||
|
|
||||||
File::File(IOStream* stream) : d(new FilePrivate(stream, false)) {}
|
File::File(IOStream *stream) : d(new FilePrivate(stream, false)) {}
|
||||||
|
|
||||||
File::~File() {
|
File::~File() {
|
||||||
delete d;
|
delete d;
|
||||||
@@ -234,7 +234,7 @@ void File::writeBlock(const ByteVector& data) {
|
|||||||
d->stream->writeBlock(data);
|
d->stream->writeBlock(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
long File::find(const ByteVector& pattern, long fromOffset, const ByteVector& before) {
|
long File::find(const ByteVector &pattern, long fromOffset, const ByteVector &before) {
|
||||||
|
|
||||||
if (!d->stream || pattern.size() > bufferSize())
|
if (!d->stream || pattern.size() > bufferSize())
|
||||||
return -1;
|
return -1;
|
||||||
@@ -331,7 +331,7 @@ long File::find(const ByteVector& pattern, long fromOffset, const ByteVector& be
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
long File::rfind(const ByteVector& pattern, long fromOffset, const ByteVector& before) {
|
long File::rfind(const ByteVector &pattern, long fromOffset, const ByteVector &before) {
|
||||||
|
|
||||||
if (!d->stream || pattern.size() > bufferSize())
|
if (!d->stream || pattern.size() > bufferSize())
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
6
3rdparty/taglib/toolkit/tfile.h
vendored
6
3rdparty/taglib/toolkit/tfile.h
vendored
@@ -184,9 +184,7 @@ class TAGLIB_EXPORT File {
|
|||||||
* \note This has the practical limitation that \a pattern can not be longer
|
* \note This has the practical limitation that \a pattern can not be longer
|
||||||
* than the buffer size used by readBlock(). Currently this is 1024 bytes.
|
* than the buffer size used by readBlock(). Currently this is 1024 bytes.
|
||||||
*/
|
*/
|
||||||
long rfind(const ByteVector &pattern,
|
long rfind(const ByteVector &pattern, long fromOffset = 0, const ByteVector &before = ByteVector());
|
||||||
long fromOffset = 0,
|
|
||||||
const ByteVector &before = ByteVector());
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Insert \a data at position \a start in the file overwriting \a replace bytes of the original content.
|
* Insert \a data at position \a start in the file overwriting \a replace bytes of the original content.
|
||||||
@@ -248,7 +246,7 @@ class TAGLIB_EXPORT File {
|
|||||||
*
|
*
|
||||||
* \note Constructor is protected since this class should only be instantiated through subclasses.
|
* \note Constructor is protected since this class should only be instantiated through subclasses.
|
||||||
*/
|
*/
|
||||||
explicit File(FileName file);
|
explicit File(const FileName fileName);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Construct a File object and use the \a stream instance.
|
* Construct a File object and use the \a stream instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user