taglib: Fix some formatting

This commit is contained in:
Jonas Kvinge 2020-06-22 03:11:35 +02:00
parent 248e487dd5
commit 00369a2cfe
3 changed files with 11 additions and 11 deletions

View File

@ -40,9 +40,11 @@
using namespace Strawberry_TagLib::TagLib;
namespace {
enum { ID3v2Index = 0,
enum {
ID3v2Index = 0,
APEIndex = 1,
ID3v1Index = 2 };
ID3v1Index = 2
};
}
class MPEG::File::FilePrivate {

View File

@ -70,14 +70,14 @@ using namespace Strawberry_TagLib::TagLib;
class File::FilePrivate {
public:
FilePrivate(IOStream* _stream, bool _owner) : stream(_stream), streamOwner(_owner), valid(true) {}
FilePrivate(IOStream *_stream, bool _owner) : stream(_stream), streamOwner(_owner), valid(true) {}
~FilePrivate() {
if (streamOwner)
delete stream;
}
IOStream* stream;
IOStream *stream;
bool streamOwner;
bool valid;
};
@ -88,7 +88,7 @@ class File::FilePrivate {
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() {
delete d;
@ -234,7 +234,7 @@ void File::writeBlock(const ByteVector& 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())
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())
return -1;

View File

@ -184,9 +184,7 @@ class TAGLIB_EXPORT File {
* \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.
*/
long rfind(const ByteVector &pattern,
long fromOffset = 0,
const ByteVector &before = ByteVector());
long rfind(const ByteVector &pattern, 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.
@ -248,7 +246,7 @@ class TAGLIB_EXPORT File {
*
* \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.