diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-10 08:06:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-10 08:06:06 +0100 |
commit | fb8a3fac5d448451794804a7470be45fa14da453 (patch) | |
tree | 110395d7cf3b7ad304e34a007ea597263adcfad8 /hwpfilter | |
parent | b8ecfd83bac98ea58a435c59856da8fd94f5c6d9 (diff) |
loplugin:nullptr: More NULL -> nullptr automatic rewrite
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/list.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hwpfilter/source/list.hxx b/hwpfilter/source/list.hxx index 99dcc7f0ab21..c4371d29a070 100644 --- a/hwpfilter/source/list.hxx +++ b/hwpfilter/source/list.hxx @@ -89,7 +89,7 @@ public: template<class T> LinkedList<T>::LinkedList( T* pItem ) { - if( pItem != NULL ) + if( pItem != nullptr ) maList.push_back( pItem ); } @@ -103,7 +103,7 @@ LinkedListIterator<T>::LinkedListIterator( LinkedList<T>* pList ) : mpList( pList ), mnPosition( 0 ) { - ASSERT( pList != NULL ); + ASSERT( pList != nullptr ); } template<class T> @@ -114,7 +114,7 @@ LinkedListIterator<T>::~LinkedListIterator() template<class T> void LinkedListIterator<T>::operator++( int ) { - ASSERT( mpList != NULL ); + ASSERT( mpList != nullptr ); // bug-compatible with LinkedList.cxx: ignore parameter! mnPosition ++; @@ -123,7 +123,7 @@ void LinkedListIterator<T>::operator++( int ) template<class T> void LinkedListIterator<T>::operator--( int ) { - ASSERT( mpList != NULL ); + ASSERT( mpList != nullptr ); // bug-compatible with LinkedList.cxx: ignore parameter! mnPosition --; @@ -132,14 +132,14 @@ void LinkedListIterator<T>::operator--( int ) template<class T> void LinkedListIterator<T>::operator++() { - ASSERT( mpList != NULL ); + ASSERT( mpList != nullptr ); mnPosition ++; } template<class T> void LinkedListIterator<T>::operator--() { - ASSERT( mpList != NULL ); + ASSERT( mpList != nullptr ); mnPosition --; } |