CID#1038283 Resource leak
Change-Id: I7f8433a76079dc76d888fd250b3033d772887e4d
This commit is contained in:
parent
ae8cbeeba0
commit
7a0ac3d38f
@ -338,7 +338,7 @@ class SVX_DLLPUBLIC NumberingTypeMgr: public NBOTypeMgrBase
|
|||||||
public:
|
public:
|
||||||
NumberingTypeMgr(const NBOType aType);
|
NumberingTypeMgr(const NBOType aType);
|
||||||
NumberingTypeMgr(const NumberingTypeMgr& aTypeMgr);
|
NumberingTypeMgr(const NumberingTypeMgr& aTypeMgr);
|
||||||
virtual ~NumberingTypeMgr() {}
|
virtual ~NumberingTypeMgr();
|
||||||
virtual void Init();
|
virtual void Init();
|
||||||
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0);
|
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0);
|
||||||
virtual sal_Bool RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF);
|
virtual sal_Bool RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF);
|
||||||
@ -347,12 +347,12 @@ class SVX_DLLPUBLIC NumberingTypeMgr: public NBOTypeMgrBase
|
|||||||
virtual sal_Bool IsCustomized(sal_uInt16 nIndex);
|
virtual sal_Bool IsCustomized(sal_uInt16 nIndex);
|
||||||
static NumberingTypeMgr* GetInstance()
|
static NumberingTypeMgr* GetInstance()
|
||||||
{
|
{
|
||||||
if ( _instance == 0 )
|
if ( _instance == 0 )
|
||||||
{
|
{
|
||||||
_instance = new NumberingTypeMgr(eNBOType::NUMBERING);
|
_instance = new NumberingTypeMgr(eNBOType::NUMBERING);
|
||||||
}
|
}
|
||||||
|
|
||||||
return _instance;
|
return _instance;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1318,7 +1318,6 @@ NumberingTypeMgr* NumberingTypeMgr::_instance = 0;
|
|||||||
|
|
||||||
NumberingTypeMgr::NumberingTypeMgr(const NBOType aType):
|
NumberingTypeMgr::NumberingTypeMgr(const NBOType aType):
|
||||||
NBOTypeMgrBase(aType),
|
NBOTypeMgrBase(aType),
|
||||||
//pNumSettingsArr( new NumSettingsArr_Impl ),
|
|
||||||
pNumberSettingsArr (new NumberSettingsArr_Impl)
|
pNumberSettingsArr (new NumberSettingsArr_Impl)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
@ -1331,12 +1330,16 @@ NumberingTypeMgr::NumberingTypeMgr(const NBOType aType):
|
|||||||
|
|
||||||
NumberingTypeMgr::NumberingTypeMgr(const NumberingTypeMgr& aTypeMgr):
|
NumberingTypeMgr::NumberingTypeMgr(const NumberingTypeMgr& aTypeMgr):
|
||||||
NBOTypeMgrBase(aTypeMgr),
|
NBOTypeMgrBase(aTypeMgr),
|
||||||
//pNumSettingsArr( new NumSettingsArr_Impl ),
|
|
||||||
pNumberSettingsArr (new NumberSettingsArr_Impl)
|
pNumberSettingsArr (new NumberSettingsArr_Impl)
|
||||||
{
|
{
|
||||||
ImplLoad(OUString("standard.syb"));
|
ImplLoad(OUString("standard.syb"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NumberingTypeMgr::~NumberingTypeMgr()
|
||||||
|
{
|
||||||
|
delete pNumberSettingsArr;
|
||||||
|
}
|
||||||
|
|
||||||
void NumberingTypeMgr::Init()
|
void NumberingTypeMgr::Init()
|
||||||
{
|
{
|
||||||
Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
|
Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user