From 5c946483546784623fc74ea3a51517118a6d9ef2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 21 Feb 2014 11:47:45 +0000 Subject: coverity#708696 Uninitialized scalar field Change-Id: If22c709ebab80d626d3d409fd6ba718781cff07d --- xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx index 567fe58906c0..1a19fc1ad7fb 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx @@ -66,12 +66,14 @@ using namespace com::sun::star::lang; struct HitItem { OUString m_aURL; - float m_fScore; + float m_fScore; - HitItem( void ) {} - HitItem( const OUString& aURL, float fScore ) - : m_aURL( aURL ) - , m_fScore( fScore ) + HitItem() + : m_fScore(0.0) + {} + HitItem(const OUString& aURL, float fScore) + : m_aURL(aURL) + , m_fScore(fScore) {} bool operator < ( const HitItem& rHitItem ) const { -- cgit