summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcontiguouscache.cpp
diff options
context:
space:
mode:
authorIan Walters <ian.walters@nokia.com>2009-05-25 23:50:16 (GMT)
committerIan Walters <ian.walters@nokia.com>2009-05-25 23:50:16 (GMT)
commitf8cb8f242817c94a3f368b01243a88918d211f1e (patch)
tree8ea03a3fa3cc7770748d957ed2303732ab36c05d /src/corelib/tools/qcontiguouscache.cpp
parentafcd5b98b1855390e1c5c1308f0beff256391d96 (diff)
downloadQt-f8cb8f242817c94a3f368b01243a88918d211f1e.zip
Qt-f8cb8f242817c94a3f368b01243a88918d211f1e.tar.gz
Qt-f8cb8f242817c94a3f368b01243a88918d211f1e.tar.bz2
Protect dump function by ifdef.
Use the same pattern for protecting the dump function as qmap.h and qhash.h employ.
Diffstat (limited to 'src/corelib/tools/qcontiguouscache.cpp')
-rw-r--r--src/corelib/tools/qcontiguouscache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qcontiguouscache.cpp b/src/corelib/tools/qcontiguouscache.cpp
index 7db3a5a..996ac18 100644
--- a/src/corelib/tools/qcontiguouscache.cpp
+++ b/src/corelib/tools/qcontiguouscache.cpp
@@ -40,10 +40,13 @@
****************************************************************************/
#include "qcontiguouscache.h"
+#ifdef QT_QCONTIGUOUSCACHE_DEBUG
#include <QDebug>
+#endif
QT_BEGIN_NAMESPACE
+#ifdef QT_QCONTIGUOUSCACHE_DEBUG
void QContiguousCacheData::dump() const
{
qDebug() << "capacity:" << alloc;
@@ -51,6 +54,7 @@ void QContiguousCacheData::dump() const
qDebug() << "start:" << start;
qDebug() << "offset:" << offset;
}
+#endif
/*! \class QContiguousCache
\brief The QContiguousCache class is a template class that provides a contiguous cache.