summaryrefslogtreecommitdiff
authorzecke <zecke>2005-02-19 22:45:25 (UTC)
committer zecke <zecke>2005-02-19 22:45:25 (UTC)
commit29fef69a2d6a9253ea6bfddb1f9ac09c502f4988 (patch) (unidiff)
tree13b7549b0e6236230b6666d4c19bfa053cc88b07
parent1b99a951afe8ff4338a320fccce5d20f462d51eb (diff)
downloadopie-29fef69a2d6a9253ea6bfddb1f9ac09c502f4988.zip
opie-29fef69a2d6a9253ea6bfddb1f9ac09c502f4988.tar.gz
opie-29fef69a2d6a9253ea6bfddb1f9ac09c502f4988.tar.bz2
Correct the placement of the exportation
Diffstat (more/less context) (show 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
@@ -143,25 +143,25 @@ struct Q_EXPORT QtULong
143{ 143{
144 QtULong() : ref( 0 ) { } 144 QtULong() : ref( 0 ) { }
145 operator unsigned long () const { return ref; } 145 operator unsigned long () const { return ref; }
146 unsigned long& operator++() { return ++ref; } 146 unsigned long& operator++() { return ++ref; }
147 unsigned long operator++( int ) { return ref++; } 147 unsigned long operator++( int ) { return ref++; }
148 unsigned long& operator--() { return --ref; } 148 unsigned long& operator--() { return --ref; }
149 unsigned long operator--( int ) { return ref--; } 149 unsigned long operator--( int ) { return ref--; }
150 150
151 unsigned long ref; 151 unsigned long ref;
152}; 152};
153 153
154#define Q_EXPORT_INTERFACE() \ 154#define Q_EXPORT_INTERFACE() \
155 extern "C" QUnknownInterface* ucm_instantiate QPE_EXPORT_SYMBOL () 155 extern "C" QPE_EXPORT_SYMBOL QUnknownInterface* ucm_instantiate ()
156 156
157#define Q_REFCOUNT \ 157#define Q_REFCOUNT \
158private: \ 158private: \
159 QtULong qtrefcount; \ 159 QtULong qtrefcount; \
160public: \ 160public: \
161 ulong addRef() {return qtrefcount++;} \ 161 ulong addRef() {return qtrefcount++;} \
162 ulong release() {if(!--qtrefcount){delete this;return 0;}return qtrefcount;} 162 ulong release() {if(!--qtrefcount){delete this;return 0;}return qtrefcount;}
163 163
164#else // QT_NO_COMPONENT 164#else // QT_NO_COMPONENT
165 165
166struct Q_EXPORT QUnknownInterface 166struct Q_EXPORT QUnknownInterface
167{ 167{