summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-06 22:38:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-06 22:38:27 +0000
commitb23b004b18b52a20454b235533b24fe7baf63518 (patch)
treef6aafcd470837b834e924d43398ea3c82f5079b5 /extensions
parent982259e35eed66b1cf270bf1ed802f2b14983e2d (diff)
ByteString->rtl::OString
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/inc/componentmodule.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/extensions/source/inc/componentmodule.cxx b/extensions/source/inc/componentmodule.cxx
index 407d2a257966..4a7b649c4af9 100644
--- a/extensions/source/inc/componentmodule.cxx
+++ b/extensions/source/inc/componentmodule.cxx
@@ -31,6 +31,7 @@
#include <svl/solar.hrc>
#include <comphelper/sequence.hxx>
#include <tools/debug.hxx>
+#include <rtl/strbuf.hxx>
#define ENTER_MOD_METHOD() \
::osl::MutexGuard aGuard(s_aMutex); \
@@ -56,7 +57,7 @@ namespace COMPMOD_NAMESPACE
{
ResMgr* m_pRessources;
sal_Bool m_bInitialized;
- ByteString m_sFilePrefix;
+ rtl::OString m_sFilePrefix;
public:
/// ctor
@@ -88,15 +89,13 @@ namespace COMPMOD_NAMESPACE
// note that this method is not threadsafe, which counts for the whole class !
if (!m_pRessources && !m_bInitialized)
{
- DBG_ASSERT(m_sFilePrefix.Len(), "OModuleImpl::getResManager: no resource file prefix!");
+ DBG_ASSERT(m_sFilePrefix.getLength(), "OModuleImpl::getResManager: no resource file prefix!");
// create a manager with a fixed prefix
- ByteString aMgrName = m_sFilePrefix;
-
- m_pRessources = ResMgr::CreateResMgr(aMgrName.GetBuffer());
+ m_pRessources = ResMgr::CreateResMgr(m_sFilePrefix.getStr());
DBG_ASSERT(m_pRessources,
- (ByteString("OModuleImpl::getResManager: could not create the resource manager (file name: ")
- += aMgrName
- += ByteString(")!")).GetBuffer());
+ rtl::OStringBuffer("OModuleImpl::getResManager: could not create the resource manager (file name: ")
+ .append(m_sFilePrefix)
+ .append(")!").getStr());
m_bInitialized = sal_True;
}