Kaydet (Commit) a906102e authored tarafından Caolán McNamara's avatar Caolán McNamara

unwind RID_PRICING_FUNCTION_DESCRIPTIONS local resource

Change-Id: Ib171e111c330241fb93edf1f2f39933eadc4adea
üst b1f7c093
......@@ -215,14 +215,11 @@ OUString ScaPricingAddIn::GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrInd
{
OUString aRet;
ScaResPublisher aResPubl( ScaResId( RID_PRICING_FUNCTION_DESCRIPTIONS, GetResMgr() ) );
ScaResId aResId( nResId, GetResMgr() );
aResId.SetRT( RSC_RESOURCE );
if( aResPubl.IsAvailableRes( aResId ) )
ScaFuncRes aSubRes( aResId, GetResMgr(), nStrIndex, aRet );
ScaFuncRes aSubRes( aResId, GetResMgr(), nStrIndex, aRet );
aResPubl.FreeResource();
return aRet;
}
......
......@@ -22,9 +22,7 @@
#define PRICING_RESOURCE_START 1000
#define RID_PRICING_FUNCTION_DESCRIPTIONS PRICING_RESOURCE_START
#define PRICING_FUNCDESC_START (RID_PRICING_FUNCTION_DESCRIPTIONS+1)
#define PRICING_FUNCDESC_START PRICING_RESOURCE_START
#define PRICING_FUNCDESC_OptBarrier (PRICING_FUNCDESC_START)
#define PRICING_FUNCDESC_OptTouch (PRICING_FUNCDESC_START+1)
......
......@@ -53,15 +53,6 @@ public:
ScaResId( sal_uInt16 nResId, ResMgr& rResMgr );
};
class ScaResPublisher : public Resource
{
public:
explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {}
using Resource::IsAvailableRes;
using Resource::FreeResource;
};
class ScaFuncRes : public Resource
{
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment