Rename private API to avoid conflict with mac OX macros.
Mac OS defines the check macro in /usr/include/AssertMacros.h http://boost.2283326.n4.nabble.com/Boost-with-Darwin-Mac-gcc-4-0-1-td2580330.html Change-Id: I99789e4dba25e80afd184c44d0781c4ebde46d74 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
30d3c3b49f
commit
f2327c083c
@ -46,7 +46,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
void QDBusObjectPath::check()
|
||||
void QDBusObjectPath::doCheck()
|
||||
{
|
||||
if (!QDBusUtil::isValidObjectPath(*this)) {
|
||||
qWarning("QDBusObjectPath: invalid path \"%s\"", qPrintable(*this));
|
||||
@ -54,7 +54,7 @@ void QDBusObjectPath::check()
|
||||
}
|
||||
}
|
||||
|
||||
void QDBusSignature::check()
|
||||
void QDBusSignature::doCheck()
|
||||
{
|
||||
if (!QDBusUtil::isValidSignature(*this)) {
|
||||
qWarning("QDBusSignature: invalid signature \"%s\"", qPrintable(*this));
|
||||
|
@ -75,26 +75,26 @@ public:
|
||||
{ return *this; }
|
||||
|
||||
private:
|
||||
void check();
|
||||
void doCheck();
|
||||
};
|
||||
|
||||
inline QDBusObjectPath::QDBusObjectPath(const char *objectPath)
|
||||
: QString(QString::fromLatin1(objectPath))
|
||||
{ check(); }
|
||||
{ doCheck(); }
|
||||
|
||||
inline QDBusObjectPath::QDBusObjectPath(const QLatin1String &objectPath)
|
||||
: QString(objectPath)
|
||||
{ check(); }
|
||||
{ doCheck(); }
|
||||
|
||||
inline QDBusObjectPath::QDBusObjectPath(const QString &objectPath)
|
||||
: QString(objectPath)
|
||||
{ check(); }
|
||||
{ doCheck(); }
|
||||
|
||||
inline QDBusObjectPath &QDBusObjectPath::operator=(const QDBusObjectPath &_path)
|
||||
{ QString::operator=(_path); check(); return *this; }
|
||||
{ QString::operator=(_path); doCheck(); return *this; }
|
||||
|
||||
inline void QDBusObjectPath::setPath(const QString &objectPath)
|
||||
{ QString::operator=(objectPath); check(); }
|
||||
{ QString::operator=(objectPath); doCheck(); }
|
||||
|
||||
inline bool operator==(const QDBusObjectPath &lhs, const QDBusObjectPath &rhs)
|
||||
{ return lhs.path() == rhs.path(); }
|
||||
@ -125,26 +125,26 @@ public:
|
||||
{ return *this; }
|
||||
|
||||
private:
|
||||
void check();
|
||||
void doCheck();
|
||||
};
|
||||
|
||||
inline QDBusSignature::QDBusSignature(const char *dBusSignature)
|
||||
: QString(QString::fromAscii(dBusSignature))
|
||||
{ check(); }
|
||||
{ doCheck(); }
|
||||
|
||||
inline QDBusSignature::QDBusSignature(const QLatin1String &dBusSignature)
|
||||
: QString(dBusSignature)
|
||||
{ check(); }
|
||||
{ doCheck(); }
|
||||
|
||||
inline QDBusSignature::QDBusSignature(const QString &dBusSignature)
|
||||
: QString(dBusSignature)
|
||||
{ check(); }
|
||||
{ doCheck(); }
|
||||
|
||||
inline QDBusSignature &QDBusSignature::operator=(const QDBusSignature &dbusSignature)
|
||||
{ QString::operator=(dbusSignature); check(); return *this; }
|
||||
{ QString::operator=(dbusSignature); doCheck(); return *this; }
|
||||
|
||||
inline void QDBusSignature::setSignature(const QString &dBusSignature)
|
||||
{ QString::operator=(dBusSignature); check(); }
|
||||
{ QString::operator=(dBusSignature); doCheck(); }
|
||||
|
||||
inline bool operator==(const QDBusSignature &lhs, const QDBusSignature &rhs)
|
||||
{ return lhs.signature() == rhs.signature(); }
|
||||
|
Loading…
Reference in New Issue
Block a user