From c63034aff9050adc90dfa3ed5fcbd35e90a5d65a Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 1 Feb 2014 14:49:14 -0600 Subject: [PATCH] coverity#707736 : Uninitialized scalar field Change-Id: Iab4b7e52d2a3a77589341d8956a8a835163c7bc5 --- dbaccess/source/ui/inc/WTypeSelect.hxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dbaccess/source/ui/inc/WTypeSelect.hxx b/dbaccess/source/ui/inc/WTypeSelect.hxx index b7f66d0df886..fd9e2b546dd1 100644 --- a/dbaccess/source/ui/inc/WTypeSelect.hxx +++ b/dbaccess/source/ui/inc/WTypeSelect.hxx @@ -65,12 +65,18 @@ namespace dbaui sal_Bool IsPrimaryKeyAllowed() const; void setPrimaryKey( OFieldDescription* _pFieldDescr, sal_uInt16 _nPos, - sal_Bool _bSet=sal_False); + sal_Bool _bSet = sal_False); protected: virtual bool PreNotify( NotifyEvent& rNEvt ); public: - OWizTypeSelectList( Window* pParent, WinBits nStyle = WB_BORDER ) : MultiListBox(pParent,nStyle) {}; - OWizTypeSelectList( Window* pParent, const ResId& rResId ) : MultiListBox(pParent,rResId) {}; + OWizTypeSelectList( Window* pParent, WinBits nStyle = WB_BORDER ) + : MultiListBox(pParent,nStyle) + , m_bPKey(sal_False) + {} + OWizTypeSelectList( Window* pParent, const ResId& rResId ) + : MultiListBox(pParent,rResId) + , m_bPKey(sal_False) + {} void SetPKey(sal_Bool bPKey) { m_bPKey = bPKey; } };