diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-09-24 14:33:08 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-09-24 14:33:32 (GMT) |
commit | ba10fb231aaa5cf5512662b94c7f9b3702d2b2ec (patch) | |
tree | 2d4a70f1c3cb1f4e078d07ca581c1d17dd0b4b88 /src/3rdparty/phonon/mmf/mmfphonondebug/objectdump.cpp | |
parent | b170ef90fc16f072be8b271a026aa355513e8966 (diff) | |
download | Qt-ba10fb231aaa5cf5512662b94c7f9b3702d2b2ec.zip Qt-ba10fb231aaa5cf5512662b94c7f9b3702d2b2ec.tar.gz Qt-ba10fb231aaa5cf5512662b94c7f9b3702d2b2ec.tar.bz2 |
Essentially do 's/NULL/0/g', to adhere to Qt coding style.
Addresses review comment.
Diffstat (limited to 'src/3rdparty/phonon/mmf/mmfphonondebug/objectdump.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/mmfphonondebug/objectdump.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump.cpp b/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump.cpp index 50c6bf8..ef2b81c 100644 --- a/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump.cpp +++ b/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump.cpp @@ -278,7 +278,7 @@ void QVisitorPrivate::setIndent(unsigned indent) void QVisitorPrivate::visitNode(const QObject& object) { QObject* const objectParent = object.parent(); - Node* const nodeParent = objectParent ? findNode(objectParent) : NULL; + Node* const nodeParent = objectParent ? findNode(objectParent) : 0; // Create a new node and store in scoped pointer for exception safety Node* node = new Node; @@ -309,13 +309,13 @@ void QVisitorPrivate::visitComplete() QList<bool> branches; static const bool isLastChild = true; dumpRecursive(*m_root, branches, isLastChild); - m_root.reset(NULL); + m_root.reset(0); } QVisitorPrivate::Node* QVisitorPrivate::findNode(const QObject* object) const { Hash::const_iterator i = m_hash.find(object); - return (m_hash.end() == i) ? NULL : *i; + return (m_hash.end() == i) ? 0 : *i; } QByteArray QVisitorPrivate::branchBuffer @@ -390,7 +390,7 @@ void QVisitorPrivate::dumpNode // No annotations - just dump the object pointer const bool isNodeLine = true; QByteArray buffer = branchBuffer(branches, isNodeLine, isLastChild); - qDebug() << NULL; // TODO + qDebug() << 0; // TODO } else { // Dump annotations |