summaryrefslogtreecommitdiff
authorzecke <zecke>2005-02-19 22:45:25 (UTC)
committer zecke <zecke>2005-02-19 22:45:25 (UTC)
commit29fef69a2d6a9253ea6bfddb1f9ac09c502f4988 (patch) (side-by-side diff)
tree13b7549b0e6236230b6666d4c19bfa053cc88b07
parent1b99a951afe8ff4338a320fccce5d20f462d51eb (diff)
downloadopie-29fef69a2d6a9253ea6bfddb1f9ac09c502f4988.zip
opie-29fef69a2d6a9253ea6bfddb1f9ac09c502f4988.tar.gz
opie-29fef69a2d6a9253ea6bfddb1f9ac09c502f4988.tar.bz2
Correct the placement of the exportation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qcom.h2
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
@@ -107,66 +107,66 @@ public:
iface->addRef();
}
return *this;
}
bool operator==( const QInterfacePtr<T> &p ) const { return iface == p.iface; }
bool operator!= ( const QInterfacePtr<T>& p ) const { return !( *this == p ); }
bool isNull() const { return !iface; }
T* operator->() const { return iface; }
T& operator*() const { return *iface; }
operator T*() const { return iface; }
QUnknownInterface** operator &() const {
if( iface )
iface->release();
return (QUnknownInterface**)&iface;
}
T** operator &() {
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