mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
SVN_SILENT fix spaces
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@769158 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
17b769a06e
commit
6ad03a6b39
@ -27,31 +27,31 @@
|
||||
|
||||
using namespace TagLib;
|
||||
|
||||
#define stringUnion(method) \
|
||||
if(tag(0) && !tag(0)->method().isEmpty()) \
|
||||
return tag(0)->method(); \
|
||||
if(tag(1) && !tag(1)->method().isEmpty()) \
|
||||
return tag(1)->method(); \
|
||||
if(tag(2) && !tag(2)->method().isEmpty()) \
|
||||
return tag(2)->method(); \
|
||||
return String::null \
|
||||
#define stringUnion(method) \
|
||||
if(tag(0) && !tag(0)->method().isEmpty()) \
|
||||
return tag(0)->method(); \
|
||||
if(tag(1) && !tag(1)->method().isEmpty()) \
|
||||
return tag(1)->method(); \
|
||||
if(tag(2) && !tag(2)->method().isEmpty()) \
|
||||
return tag(2)->method(); \
|
||||
return String::null \
|
||||
|
||||
#define numberUnion(method) \
|
||||
if(tag(0) && tag(0)->method() > 0) \
|
||||
return tag(0)->method(); \
|
||||
if(tag(1) && tag(1)->method() > 0) \
|
||||
return tag(1)->method(); \
|
||||
if(tag(2) && tag(2)->method() > 0) \
|
||||
return tag(2)->method(); \
|
||||
#define numberUnion(method) \
|
||||
if(tag(0) && tag(0)->method() > 0) \
|
||||
return tag(0)->method(); \
|
||||
if(tag(1) && tag(1)->method() > 0) \
|
||||
return tag(1)->method(); \
|
||||
if(tag(2) && tag(2)->method() > 0) \
|
||||
return tag(2)->method(); \
|
||||
return 0
|
||||
|
||||
#define setUnion(method, value) \
|
||||
if(tag(0)) \
|
||||
tag(0)->set##method(value); \
|
||||
if(tag(1)) \
|
||||
tag(1)->set##method(value); \
|
||||
if(tag(2)) \
|
||||
tag(2)->set##method(value); \
|
||||
#define setUnion(method, value) \
|
||||
if(tag(0)) \
|
||||
tag(0)->set##method(value); \
|
||||
if(tag(1)) \
|
||||
tag(1)->set##method(value); \
|
||||
if(tag(2)) \
|
||||
tag(2)->set##method(value); \
|
||||
|
||||
class TagUnion::TagUnionPrivate
|
||||
{
|
||||
|
@ -76,12 +76,12 @@ namespace TagLib {
|
||||
template <class T> T *access(int index, bool create)
|
||||
{
|
||||
if(!create || tag(index))
|
||||
return static_cast<T *>(tag(index));
|
||||
return static_cast<T *>(tag(index));
|
||||
|
||||
set(index, new T);
|
||||
return static_cast<T *>(tag(index));
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
TagUnion(const Tag &);
|
||||
TagUnion &operator=(const Tag &);
|
||||
|
@ -145,7 +145,7 @@ bool TrueAudio::File::save()
|
||||
removeBlock(d->ID3v2Location, d->ID3v2OriginalSize);
|
||||
d->ID3v1Location -= d->ID3v2OriginalSize;
|
||||
d->ID3v2Location = -1;
|
||||
d->ID3v2OriginalSize = 0;
|
||||
d->ID3v2OriginalSize = 0;
|
||||
d->hasID3v2 = false;
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ bool WavPack::File::save()
|
||||
if(d->hasID3v1) {
|
||||
if(d->ID3v1Location > d->APELocation) {
|
||||
d->ID3v1Location -= d->APESize;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user