diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-12 13:59:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-12 14:12:03 +0100 |
commit | b9daf7cacdcabff937d06f0f45c3daf2380bd888 (patch) | |
tree | b108dafcb002ddc7f033ff46dcf08fbebe88bd6a /sd/inc | |
parent | 7b832d545acb91cc343d26e8bf26e6a844040183 (diff) |
coverity#735840 Unchecked dynamic_cast
Change-Id: I3c772ec30360103f569b34e7c83f65b469eb5be8
Diffstat (limited to 'sd/inc')
-rw-r--r-- | sd/inc/drawdoc.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index 6310fe3c4a42..f27df329d66f 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -212,9 +212,12 @@ public: SdDrawDocument(DocumentType eType, SfxObjectShell* pDocSh); virtual ~SdDrawDocument(); - virtual SdrModel* AllocModel() const SAL_OVERRIDE; - virtual SdrPage* AllocPage(bool bMasterPage) SAL_OVERRIDE; + SdDrawDocument* AllocSdDrawDocument() const; + virtual SdrModel* AllocModel() const SAL_OVERRIDE; //forwards to AllocSdDrawDocument + SdPage* AllocSdPage(bool bMasterPage); + virtual SdrPage* AllocPage(bool bMasterPage) SAL_OVERRIDE; //forwards to AllocSdPage + virtual bool IsReadOnly() const SAL_OVERRIDE; virtual void SetChanged(bool bFlag = true) SAL_OVERRIDE; |