summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-21 11:47:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-21 12:40:36 +0000
commit5c946483546784623fc74ea3a51517118a6d9ef2 (patch)
tree25f2b09c1a7a04b0991f3f546d2dd901d33508db /xmlhelp
parent3a3bdb2f6eccc8b806baada2ff201465ba453f55 (diff)
coverity#708696 Uninitialized scalar field
Change-Id: If22c709ebab80d626d3d409fd6ba718781cff07d
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx12
1 files changed, 7 insertions, 5 deletions
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
{