Kaydet (Commit) d2991722 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Added static toString method to ResId class.

üst 5c40918d
......@@ -43,6 +43,10 @@ class ResMgr;
//- ResId -
//---------
namespace rtl {
class OUString;
}
class ResId
{
/*
......@@ -158,6 +162,8 @@ class ResId
sal_uInt32 GetId() const { return m_nResId & ~RSC_DONTRELEASE; }
RSHEADER_TYPE* GetpResource() const { return m_pResource; }
static TOOLS_DLLPUBLIC rtl::OUString toString(const ResId& aId);
};
#endif // _RESID_HXX
......
......@@ -212,4 +212,10 @@ UniString::UniString( const ResId& rResId )
pImplResHookProc( *this );
}
rtl::OUString ResId::toString(const ResId& aId)
{
// TODO: Optimize this.
return rtl::OUString(UniString(aId));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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