diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 12:36:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 12:44:36 +0200 |
commit | baa9c806e8730741d36009065d203121f623d5d9 (patch) | |
tree | bcbc19a7208e9a499d07918698bdbefad21706cf /sc/source/filter/inc/xcl97esc.hxx | |
parent | 051667ec91a3fa4175fc8ae59529ac02b95e0683 (diff) |
Return std::unique_ptr from some XclEscherEx::Create... functions
...even if, for now, the return values are directly release()'ed anyway at the
call sites
Change-Id: I118c74787260b1ec7eabf5e300580aa5a16b2cfa
Diffstat (limited to 'sc/source/filter/inc/xcl97esc.hxx')
-rw-r--r-- | sc/source/filter/inc/xcl97esc.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/inc/xcl97esc.hxx b/sc/source/filter/inc/xcl97esc.hxx index a101befb5a7b..2cc94f53390e 100644 --- a/sc/source/filter/inc/xcl97esc.hxx +++ b/sc/source/filter/inc/xcl97esc.hxx @@ -101,14 +101,14 @@ public: void EndDocument(); /** Creates an OCX form control OBJ record from the passed form control. @descr Writes the form control data to the 'Ctls' stream. */ - XclExpOcxControlObj* CreateOCXCtrlObj( + std::unique_ptr<XclExpOcxControlObj> CreateOCXCtrlObj( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape, const Rectangle* pChildAnchor ); private: tools::SvRef<SotStorageStream> mxCtlsStrm; /// The 'Ctls' stream. /** Creates a TBX form control OBJ record from the passed form control. */ - XclExpTbxControlObj* CreateTBXCtrlObj( + std::unique_ptr<XclExpTbxControlObj> CreateTBXCtrlObj( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape, const Rectangle* pChildAnchor ); |