diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-04-08 14:47:23 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-04-09 10:51:56 +0200 |
commit | 06d8e6264487e3084b583e5158d9b89f8480b3eb (patch) | |
tree | f26bdc003f656b8d5c944b3bc361da33816adb22 /include | |
parent | aa02205fc46ed53a0af18517c3cd4064d514f85f (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')
-rw-r--r-- | include/svx/unomod.hxx | 6 | ||||
-rw-r--r-- | include/svx/unomodel.hxx | 2 |
2 files changed, 6 insertions, 2 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() {}; diff --git a/include/svx/unomodel.hxx b/include/svx/unomodel.hxx index e637e4486d2a..5d5e15a5bee8 100644 --- a/include/svx/unomodel.hxx +++ b/include/svx/unomodel.hxx @@ -56,7 +56,7 @@ private: protected: // SvxUnoDrawMSFactory - virtual SdrModel* getSdrModelFromUnoModel() const override; + virtual SdrModel& getSdrModelFromUnoModel() const override; public: SvxUnoDrawingModel( SdrModel* pDoc ) throw(); |