summaryrefslogtreecommitdiffstats
path: root/qtools/qstring.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-03 19:13:07 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-03 19:13:07 (GMT)
commitfe67b8eb68129713327965c201f2d7226b83202f (patch)
tree485fb83c5a301dd4b0edb3c534b1f31eeb08ab1f /qtools/qstring.h
parenta30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2 (diff)
downloadDoxygen-fe67b8eb68129713327965c201f2d7226b83202f.zip
Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.gz
Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.bz2
Release-1.2.3-20001203
Diffstat (limited to 'qtools/qstring.h')
-rw-r--r--qtools/qstring.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtools/qstring.h b/qtools/qstring.h
index f955f32..f131446 100644
--- a/qtools/qstring.h
+++ b/qtools/qstring.h
@@ -646,8 +646,11 @@ inline QString::QString() :
//
inline QString::~QString()
{
- if ( d->deref() )
+ if ( d->deref() ) {
+ if ( d == shared_null )
+ shared_null = 0;
d->deleteSelf();
+ }
}
inline QString &QString::operator=( QChar c )