summaryrefslogtreecommitdiff
path: root/basic/inc/sbxbase.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-23 21:05:31 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-23 21:30:45 +0200
commit51906611abb53e8a22f2d460964e87b0b399d684 (patch)
treefc35b485a564622b53e58858fd10c4aab33f42a0 /basic/inc/sbxbase.hxx
parenta7498603d8b532a1560c3ab816ddb941ad472945 (diff)
basic: move SbxAppData to a BasicDLL member
... so it is deleted by ~SfxApplication. Change-Id: I161bd92eb9b5082d1fdeea603921d0372a4d97e6
Diffstat (limited to 'basic/inc/sbxbase.hxx')
-rw-r--r--basic/inc/sbxbase.hxx10
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();
};