-rw-r--r-- | library/qcom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/qcom.h b/library/qcom.h index 5703800..be94013 100644 --- a/library/qcom.h +++ b/library/qcom.h @@ -131,42 +131,42 @@ public: if ( iface ) iface->release(); return &iface; } private: T* iface; }; // internal class that wraps an initialized ulong struct Q_EXPORT QtULong { QtULong() : ref( 0 ) { } operator unsigned long () const { return ref; } unsigned long& operator++() { return ++ref; } unsigned long operator++( int ) { return ref++; } unsigned long& operator--() { return --ref; } unsigned long operator--( int ) { return ref--; } unsigned long ref; }; #define Q_EXPORT_INTERFACE() \ - extern "C" QUnknownInterface* ucm_instantiate QPE_EXPORT_SYMBOL () + extern "C" QPE_EXPORT_SYMBOL QUnknownInterface* ucm_instantiate () #define Q_REFCOUNT \ private: \ QtULong qtrefcount; \ public: \ ulong addRef() {return qtrefcount++;} \ ulong release() {if(!--qtrefcount){delete this;return 0;}return qtrefcount;} #else // QT_NO_COMPONENT struct Q_EXPORT QUnknownInterface { }; #endif // QT_NO_COMPONENT #endif // QCOM_H |