summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-09 11:45:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-09 13:57:16 +0000
commit87ec1f8857e77c0b8d559fa92416f44b68dd1e63 (patch)
treec6aca1bbfe5bbf8749a870c1a1cbc05399aa4a2e /sot
parent17d5cdfff9a2f8a311428b981a3998b8e33b4d82 (diff)
callcatcher: remove unused code post automation removal
Diffstat (limited to 'sot')
-rw-r--r--sot/inc/sot/sotdata.hxx4
-rw-r--r--sot/source/base/factory.cxx10
2 files changed, 13 insertions, 1 deletions
diff --git a/sot/inc/sot/sotdata.hxx b/sot/inc/sot/sotdata.hxx
index 22cfb86c116b..065917932132 100644
--- a/sot/inc/sot/sotdata.hxx
+++ b/sot/inc/sot/sotdata.hxx
@@ -51,8 +51,12 @@ struct SotData_Impl
sal_uInt32 nSvObjCount;
std::list<SotObject*> aObjectList;
SotFactoryList * pFactoryList;
+ SotFactory * pSotObjectFactory;
+ SotFactory * pSotStorageStreamFactory;
+ SotFactory * pSotStorageFactory;
tDataFlavorList* pDataFlavorList;
SotData_Impl();
+ ~SotData_Impl();
};
SOT_DLLPUBLIC SotData_Impl* SOTDATA();
diff --git a/sot/source/base/factory.cxx b/sot/source/base/factory.cxx
index 15ac9b97d825..1a7e80805ad9 100644
--- a/sot/source/base/factory.cxx
+++ b/sot/source/base/factory.cxx
@@ -48,17 +48,25 @@
SotData_Impl::SotData_Impl()
: nSvObjCount( 0 )
, pFactoryList( NULL )
+ , pSotObjectFactory( NULL )
+ , pSotStorageStreamFactory( NULL )
+ , pSotStorageFactory( NULL )
, pDataFlavorList( NULL )
{
}
+SotData_Impl::~SotData_Impl()
+{
+ delete pDataFlavorList;
+ delete pFactoryList;
+}
+
/*************************************************************************
|* SOTDATA()
|*
|* Beschreibung
*************************************************************************/
namespace { struct ImplData : public rtl::Static<SotData_Impl, ImplData> {}; }
-
SotData_Impl * SOTDATA()
{
return &ImplData::get();