diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-04-21 21:10:51 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-04-21 21:10:51 (GMT) |
commit | 5d31b7ab211586100301d6838be82f066f8f9af4 (patch) | |
tree | 81218085d3e6e15b1ce6c418734013d48e9deda8 /qtools/qasciidict.h | |
parent | 76e39987363c93fdd3f2d99ffdb9f87743d6af7c (diff) | |
download | Doxygen-5d31b7ab211586100301d6838be82f066f8f9af4.zip Doxygen-5d31b7ab211586100301d6838be82f066f8f9af4.tar.gz Doxygen-5d31b7ab211586100301d6838be82f066f8f9af4.tar.bz2 |
Release-1.4.2-20050421
Diffstat (limited to 'qtools/qasciidict.h')
-rw-r--r-- | qtools/qasciidict.h | 13 |
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 { |