diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 11:25:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:34:55 +0100 |
commit | 4f502dd5700f29ce8fe0c1e6a9de337a9ebe3216 (patch) | |
tree | e5c14e0dc1a75aa5f86cee64977b7e7acf832ced /xmlhelp | |
parent | c6f21f90e1ca448a15b3a8a6d0eeaad108ba8176 (diff) |
loplugin:subtlezeroinit: xmlhelp
Change-Id: I8c95b651bf0d764ca33908f9f52c9043abdd62ca
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.cxx | 4 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/db.cxx b/xmlhelp/source/cxxhelp/provider/db.cxx index 5d509f0e6d13..2510e80c0fb6 100644 --- a/xmlhelp/source/cxxhelp/provider/db.cxx +++ b/xmlhelp/source/cxxhelp/provider/db.cxx @@ -68,13 +68,13 @@ void Hdf::createHashMap( bool bOptimizeForPerformance ) { if( m_pStringToDataMap != nullptr ) return; - m_pStringToDataMap = new StringToDataMap(); + m_pStringToDataMap = new StringToDataMap; } else { if( m_pStringToValPosMap != nullptr ) return; - m_pStringToValPosMap = new StringToValPosMap(); + m_pStringToValPosMap = new StringToValPosMap; } Reference< XInputStream > xIn = m_xSFA->openFileRead( m_aFileURL ); diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx index a3feb4570162..996d9042c753 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx @@ -150,7 +150,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< uno::XComponentConte vector<HitItem>* pQueryResultVector; if( nQueryListSize > 1 ) { - pQueryResultVector = new vector<HitItem>(); + pQueryResultVector = new vector<HitItem>; aQueryListResultVectorVector.push_back( pQueryResultVector ); } else |