From d2f9f27774ec138c9f66c55f582a123d8ebd19ff Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 30 Mar 2016 18:59:54 +0200 Subject: loplugin:nullptr: Find some more cases in templates Change-Id: I1f127d56e40b04f2b4df85c0afbcfd424d68a8cc --- stoc/source/corereflection/lrucache.hxx | 6 +++--- stoc/source/security/lru_cache.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'stoc/source') 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 ) { } -- cgit /cib/libreoffice-6-4'>distro/cib/libreoffice-6-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/osx
AgeCommit message (Expand)Author