diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-23 21:05:31 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-23 21:30:45 +0200 |
commit | 51906611abb53e8a22f2d460964e87b0b399d684 (patch) | |
tree | fc35b485a564622b53e58858fd10c4aab33f42a0 /basic/inc | |
parent | basic: pimplify that (diff) | |
download | core-51906611abb53e8a22f2d460964e87b0b399d684.tar.gz core-51906611abb53e8a22f2d460964e87b0b399d684.zip |
basic: move SbxAppData to a BasicDLL member
... so it is deleted by ~SfxApplication.
Change-Id: I161bd92eb9b5082d1fdeea603921d0372a4d97e6
Diffstat (limited to 'basic/inc')
-rw-r--r-- | basic/inc/sbxbase.hxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/basic/inc/sbxbase.hxx b/basic/inc/sbxbase.hxx index de1152c921ff..21bb7d4a3686 100644 --- a/basic/inc/sbxbase.hxx +++ b/basic/inc/sbxbase.hxx @@ -24,6 +24,7 @@ #include <basic/sbxdef.hxx> #include <basic/basicdllapi.h> #include <boost/ptr_container/ptr_vector.hpp> +#include <boost/noncopyable.hpp> class SbxFactory; class SbxVariable; @@ -33,6 +34,7 @@ typedef boost::ptr_vector<SbxFactory> SbxFacs; // AppData structure for SBX: struct SbxAppData + : private ::boost::noncopyable { SbxError eSbxError; // Error code SbxFacs aFacs; // Factories @@ -41,13 +43,7 @@ struct SbxAppData LanguageType eBasicFormaterLangType; // It might be useful to store this class 'global' because some string reosurces are saved here - SbxAppData() - : eSbxError(SbxERR_OK) - , aFacs() - , pBasicFormater(NULL) - , eBasicFormaterLangType(LANGUAGE_DONTKNOW) - { - } + SbxAppData(); ~SbxAppData(); }; |