summaryrefslogtreecommitdiffstats
path: root/qtools/qasciidict.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qasciidict.h')
-rw-r--r--qtools/qasciidict.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/qtools/qasciidict.h b/qtools/qasciidict.h
index 3f2deaf..29fcf2f 100644
--- a/qtools/qasciidict.h
+++ b/qtools/qasciidict.h
@@ -71,9 +71,20 @@ public:
void resize( uint n ) { QGDict::resize(n); }
void statistics() const { QGDict::statistics(); }
private:
- void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
+ void deleteItem( Item d );
};
+#if defined(Q_DELETING_VOID_UNDEFINED)
+template<> inline void QAsciiDict<void>::deleteItem( Item )
+{
+}
+#endif
+
+template<class type> inline void QAsciiDict<type>::deleteItem( QCollection::Item d )
+{
+ if ( del_item ) delete (type *)d;
+}
+
template<class type> class Q_EXPORT QAsciiDictIterator : public QGDictIterator
{