diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-30 18:59:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-30 18:59:54 +0200 |
commit | d2f9f27774ec138c9f66c55f582a123d8ebd19ff (patch) | |
tree | b984aa02aab3813d2a9c0ede9ad1e5d0fdf7fdb1 /stoc | |
parent | 14060e76e33cfb305c1469fecf7db688bf8a8858 (diff) |
loplugin:nullptr: Find some more cases in templates
Change-Id: I1f127d56e40b04f2b4df85c0afbcfd424d68a8cc
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/corereflection/lrucache.hxx | 6 | ||||
-rw-r--r-- | stoc/source/security/lru_cache.h | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/stoc/source/corereflection/lrucache.hxx b/stoc/source/corereflection/lrucache.hxx index 3bfb878b72ae..13f4803ca085 100644 --- a/stoc/source/corereflection/lrucache.hxx +++ b/stoc/source/corereflection/lrucache.hxx @@ -90,9 +90,9 @@ inline LRU_Cache< t_Key, t_Val, t_KeyHash >::LRU_Cache( sal_Int32 nCachedElement #else : _nCachedElements( nCachedElements ) #endif - , _pBlock( 0 ) - , _pHead( 0 ) - , _pTail( 0 ) + , _pBlock( nullptr ) + , _pHead( nullptr ) + , _pTail( nullptr ) { if (_nCachedElements > 0) { diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h index 11a333b161bc..b2c384706a86 100644 --- a/stoc/source/security/lru_cache.h +++ b/stoc/source/security/lru_cache.h @@ -115,8 +115,8 @@ template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKe inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache( ::std::size_t size ) : m_size( 0 ) - , m_block( 0 ) - , m_tail( 0 ) + , m_block( nullptr ) + , m_tail( nullptr ) { setSize( size ); } @@ -124,9 +124,9 @@ inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache( template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache() : m_size( 0 ) - , m_block( 0 ) - , m_head( 0 ) - , m_tail( 0 ) + , m_block( nullptr ) + , m_head( nullptr ) + , m_tail( nullptr ) { } |