summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-22 07:58:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-23 11:37:05 +0000
commit8ab3795596da25fbb18de8cfb8632d4956a256ec (patch)
treea5f8351a20d46fa38409ba396e7dcb1701daa855 /shell
parent61eb66bd2d03b45a6ed45c0acf2e202643d62559 (diff)
make shell ByteString free
Diffstat (limited to 'shell')
-rw-r--r--shell/source/tools/lngconvex/lngconvex.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx
index 91f270e2be9e..5b2ecb2f5c82 100644
--- a/shell/source/tools/lngconvex/lngconvex.cxx
+++ b/shell/source/tools/lngconvex/lngconvex.cxx
@@ -327,7 +327,7 @@ typedef std::map< unsigned short , std::string , std::less< unsigned short > > s
void add_group_entries(
Config& aConfig,
- const ByteString& GroupName,
+ const rtl::OString& GroupName,
Substitutor& Substitutor)
{
OSL_ASSERT(aConfig.HasGroup(GroupName));
@@ -338,8 +338,8 @@ void add_group_entries(
for (size_t i = 0; i < key_count; i++)
{
- ByteString iso_lang = aConfig.GetKeyName(sal::static_int_cast<sal_uInt16>(i));
- ByteString key_value_utf8 = aConfig.ReadKey(sal::static_int_cast<sal_uInt16>(i));
+ rtl::OString iso_lang = aConfig.GetKeyName(sal::static_int_cast<sal_uInt16>(i));
+ rtl::OString key_value_utf8 = aConfig.ReadKey(sal::static_int_cast<sal_uInt16>(i));
iso_lang_identifier myiso_lang( iso_lang );
LanguageType ltype = MsLangId::convertIsoNamesToLanguage(myiso_lang.language(), myiso_lang.country());
if( ( ltype & 0x0200 ) == 0 && map[ ltype ].empty() )
@@ -352,14 +352,14 @@ void add_group_entries(
rtl::OStringToOUString(key_value_utf8, RTL_TEXTENCODING_UTF8);
Substitutor.add_substitution(
- GroupName.GetBuffer(), make_winrc_unicode_string(key_value_utf16));
- map[ static_cast<unsigned short>(ltype) ] = std::string( iso_lang.GetBuffer() );
+ GroupName.getStr(), make_winrc_unicode_string(key_value_utf16));
+ map[ static_cast<unsigned short>(ltype) ] = std::string( iso_lang.getStr() );
}
else
{
if( !map[ ltype ].empty() )
{
- printf("ERROR: Duplicated ms id %d found for the languages %s and %s !!!! This does not work in microsoft resources\nPlease remove one!\n", ltype , map[ ltype ].c_str() , iso_lang.GetBuffer());
+ printf("ERROR: Duplicated ms id %d found for the languages %s and %s !!!! This does not work in microsoft resources\nPlease remove one!\n", ltype , map[ ltype ].c_str() , iso_lang.getStr());
exit( -1 );
}
}