summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/rc/rc.cxx11
-rw-r--r--tools/source/rc/resmgr.cxx4
2 files changed, 7 insertions, 8 deletions
diff --git a/tools/source/rc/rc.cxx b/tools/source/rc/rc.cxx
index de16eaa486c5..262f07a6a5e3 100644
--- a/tools/source/rc/rc.cxx
+++ b/tools/source/rc/rc.cxx
@@ -18,7 +18,7 @@
*/
#include <string.h>
-#include <rtl/ustrbuf.hxx>
+#include <rtl/ustring.hxx>
#include <tools/date.hxx>
#include <tools/time.hxx>
#include <tools/rc.hxx>
@@ -42,6 +42,7 @@ void Resource::GetRes( const ResId& rResId )
OUString ResId::toString() const
{
SetRT( RSC_STRING );
+
ResMgr* pResMgr = GetResMgr();
if ( !pResMgr || !pResMgr->GetResource( *this ) )
@@ -49,11 +50,9 @@ OUString ResId::toString() const
OUString sRet;
#if OSL_DEBUG_LEVEL > 0
- sRet = OUStringBuffer().
- append("<resource id ").
- append(static_cast<sal_Int32>(GetId())).
- append(" not found>").
- makeStringAndClear();
+ sRet = "<resource id "
+ + OUString::number(static_cast<sal_Int32>(GetId()))
+ + " not found>";
#endif
if( pResMgr )
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 8cccee4c54bd..668b414e1ae4 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -913,7 +913,7 @@ bool ResMgr::IsAvailable( const ResId& rId, const Resource* pResObj ) const
bool bAvailable = false;
RSHEADER_TYPE* pClassRes = rId.GetpResource();
- RESOURCE_TYPE nRT = rId.GetRT2();
+ RESOURCE_TYPE nRT = rId.GetRT();
sal_uInt32 nId = rId.GetId();
const ResMgr* pMgr = rId.GetResMgr();
@@ -978,7 +978,7 @@ bool ResMgr::GetResource( const ResId& rId, const Resource* pResObj )
}
RSHEADER_TYPE* pClassRes = rId.GetpResource();
- RESOURCE_TYPE nRT = rId.GetRT2();
+ RESOURCE_TYPE nRT = rId.GetRT();
sal_uInt32 nId = rId.GetId();
incStack();