qt.cfg: Added support for Q_DECLARE_PUBLIC()-macro.
This commit is contained in:
parent
17c1733b0e
commit
fe402498e1
|
@ -1336,6 +1336,7 @@
|
|||
<define name="Q_DECLARE_OPERATORS_FOR_FLAGS(x)" value=""/>
|
||||
<define name="Q_DECLARE_METATYPE(x)" value=""/>
|
||||
<define name="Q_DECLARE_PRIVATE(Class)" value="inline Class##Private* d_func() { return reinterpret_cast<Class##Private*>(qGetPtrHelper(d_ptr)); } inline const Class##Private d_func() const { return reinterpret_cast<const Class##Private *>(qGetPtrHelper(d_ptr)); } friend class Class##Private;"/>
|
||||
<define name="Q_DECLARE_PUBLIC(Class)" value="inline Class##Public* d_func() { return reinterpret_cast<Class##Public*>(qGetPtrHelper(d_ptr)); } inline const Class##Public d_func() const { return reinterpret_cast<const Class##Public *>(qGetPtrHelper(d_ptr)); } friend class Class##Public;"/>
|
||||
<define name="Q_DECLARE_TR_FUNCTIONS(context)" value="public: static inline QString tr(const char *sourceText, const char *disambiguation = Q_NULLPTR, int n = -1) { return QCoreApplication::translate(#context, sourceText, disambiguation, n); } QT_DECLARE_DEPRECATED_TR_FUNCTIONS(context) private:"/>
|
||||
<define name="Q_DISABLE_COPY(C)" value="C(C&);C& operator=(const C&);"/>
|
||||
<define name="Q_ENUM(X)" value=""/>
|
||||
|
|
|
@ -24,7 +24,7 @@ void ignoreleak(void)
|
|||
|
||||
void memleak_asprintf(char **ptr, const char *fmt, const int arg)
|
||||
{
|
||||
// No warning is expected for
|
||||
// No warning is expected for
|
||||
if (-1 != asprintf(ptr,fmt,arg)) {
|
||||
free(ptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue