diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-01 14:49:14 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-01 15:30:00 -0600 |
commit | c63034aff9050adc90dfa3ed5fcbd35e90a5d65a (patch) | |
tree | ae41f1156eb00cbf4a977c33f4fd677ad00d8097 /dbaccess | |
parent | 42fae6e07b8758a3f8a27d315b50dd6b8c28b26f (diff) |
coverity#707736 : Uninitialized scalar field
Change-Id: Iab4b7e52d2a3a77589341d8956a8a835163c7bc5
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/inc/WTypeSelect.hxx | 12 |
1 files 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; } }; |