summaryrefslogtreecommitdiff
path: root/sd/source/core
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-12 13:59:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-12 14:12:03 +0100
commitb9daf7cacdcabff937d06f0f45c3daf2380bd888 (patch)
treeb108dafcb002ddc7f033ff46dcf08fbebe88bd6a /sd/source/core
parent7b832d545acb91cc343d26e8bf26e6a844040183 (diff)
coverity#735840 Unchecked dynamic_cast
Change-Id: I3c772ec30360103f569b34e7c83f65b469eb5be8
Diffstat (limited to 'sd/source/core')
-rw-r--r--sd/source/core/drawdoc.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx
index 957f946cbec5..3a08a8de83b3 100644
--- a/sd/source/core/drawdoc.cxx
+++ b/sd/source/core/drawdoc.cxx
@@ -434,10 +434,15 @@ SdDrawDocument::~SdDrawDocument()
mpCharClass = NULL;
}
+SdrModel* SdDrawDocument::AllocModel() const
+{
+ return AllocSdDrawDocument();
+}
+
// This method creates a new document (SdDrawDocument) and returns a pointer to
// said document. The drawing engine uses this method to put the document (or
// parts of it) into the clipboard/DragServer.
-SdrModel* SdDrawDocument::AllocModel() const
+SdDrawDocument* SdDrawDocument::AllocSdDrawDocument() const
{
SdDrawDocument* pNewModel = NULL;