diff options
Diffstat (limited to 'include/svx')
-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(); |