mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
clang-tidy: use patentheses in macros
Found with bugprone-macro-parentheses Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
f40290dcaf
commit
9427d8f3ba
@ -31,8 +31,8 @@
|
||||
|
||||
#if defined(HAVE_GCC_ATOMIC)
|
||||
# define ATOMIC_INT int
|
||||
# define ATOMIC_INC(x) __sync_add_and_fetch(&x, 1)
|
||||
# define ATOMIC_DEC(x) __sync_sub_and_fetch(&x, 1)
|
||||
# define ATOMIC_INC(x) __sync_add_and_fetch(&(x), 1)
|
||||
# define ATOMIC_DEC(x) __sync_sub_and_fetch(&(x), 1)
|
||||
#elif defined(HAVE_WIN_ATOMIC)
|
||||
# if !defined(NOMINMAX)
|
||||
# define NOMINMAX
|
||||
|
@ -45,7 +45,7 @@
|
||||
#if defined(QT_VERSION) && (QT_VERSION >= 0x040000)
|
||||
#define QStringToTString(s) TagLib::String(s.toUtf8().data(), TagLib::String::UTF8)
|
||||
#else
|
||||
#define QStringToTString(s) TagLib::String(s.utf8().data(), TagLib::String::UTF8)
|
||||
#define QStringToTString(s) TagLib::String((s).utf8().data(), TagLib::String::UTF8)
|
||||
#endif
|
||||
|
||||
/*!
|
||||
@ -58,7 +58,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define TStringToQString(s) QString::fromUtf8(s.toCString(true))
|
||||
#define TStringToQString(s) QString::fromUtf8((s).toCString(true))
|
||||
|
||||
namespace TagLib {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user