diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 14:53:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:19 +0000 |
commit | 3b6c21594ebf813c3448d1f9096e3766a2664268 (patch) | |
tree | 54d413db5c6f5b62756cd51ce840e082f7fd63c3 /svx/source/unodraw/unopage.cxx | |
parent | 0b90c4a2856edefe4c91c51d5d72daa5a301b41c (diff) |
coverity#704840 Explicit null dereferenced
Change-Id: Icf3dd9f6c34062b4bc43634b15d210ccf60f8ab9
Diffstat (limited to 'svx/source/unodraw/unopage.cxx')
-rw-r--r-- | svx/source/unodraw/unopage.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index f6cb548da731..ac4ed1e44a87 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -59,17 +59,14 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::drawing; UNO3_GETIMPLEMENTATION_IMPL( SvxDrawPage ); -SvxDrawPage::SvxDrawPage( SdrPage* pInPage ) throw() -: mrBHelper( getMutex() ) -, mpPage( pInPage ) -, mpModel( nullptr ) -{ - // register at broadcaster - if( mpPage ) - mpModel = mpPage->GetModel(); - // create (hidden) view - mpView = new SdrView( mpModel ); +SvxDrawPage::SvxDrawPage(SdrPage* pInPage) throw() + : mrBHelper(getMutex()) + , mpPage(pInPage) + , mpModel(mpPage->GetModel()) // register at broadcaster + , mpView(new SdrView(mpModel)) // create (hidden) view + +{ mpView->SetDesignMode(); } |