summaryrefslogtreecommitdiff
path: root/include/svx/unomod.hxx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-04-08 14:47:23 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2018-04-09 10:51:56 +0200
commit06d8e6264487e3084b583e5158d9b89f8480b3eb (patch)
treef26bdc003f656b8d5c944b3bc361da33816adb22 /include/svx/unomod.hxx
parentaa02205fc46ed53a0af18517c3cd4064d514f85f (diff)
Make getSdrModelFromUnoModel work with SdrModel&
Change-Id: Iea3af7db77ef778db7bbdf2c1b6b1b956fd57fec Reviewed-on: https://gerrit.libreoffice.org/52592 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'include/svx/unomod.hxx')
-rw-r--r--include/svx/unomod.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/svx/unomod.hxx b/include/svx/unomod.hxx
index 04571c9071b2..f8ecfd6fc965 100644
--- a/include/svx/unomod.hxx
+++ b/include/svx/unomod.hxx
@@ -34,7 +34,11 @@ class SVX_DLLPUBLIC SvxUnoDrawMSFactory : public css::lang::XMultiServiceFactory
{
protected:
/** abstract SdrModel provider */
- virtual SdrModel* getSdrModelFromUnoModel() const = 0; //TTTT make reference return
+ // Every App has a DrwingLayer as internal Tooling, thus ist is
+ // not too hard to asl a UnoModel to hand back a DrawingLayer Model in the
+ // form of an SdrModel. Thus, returning a reference and make usages
+ // safer and easier is justified.
+ virtual SdrModel& getSdrModelFromUnoModel() const = 0; //TTTT make reference return
public:
SvxUnoDrawMSFactory() throw() {};