summaryrefslogtreecommitdiff
path: root/l10ntools/source/srciter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/source/srciter.cxx')
-rw-r--r--l10ntools/source/srciter.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/l10ntools/source/srciter.cxx b/l10ntools/source/srciter.cxx
index c3e4988e3d2c..9c18fd5fe837 100644
--- a/l10ntools/source/srciter.cxx
+++ b/l10ntools/source/srciter.cxx
@@ -29,6 +29,7 @@
#include "srciter.hxx"
#include <stdio.h>
+#include <rtl/strbuf.hxx>
#include <tools/fsys.hxx>
//
@@ -83,16 +84,16 @@ void SourceTreeIterator::ExecuteDirectory( transex::Directory& aDirectory )
//printf("**** %s \n", OUStringToOString( sDirName , RTL_TEXTENCODING_UTF8 , sDirName.getLength() ).getStr() );
rtl::OUString sDirNameTmp = aDirectory.getFullName();
- ByteString sDirNameTmpB( rtl::OUStringToOString( sDirNameTmp , RTL_TEXTENCODING_UTF8 , sDirName.getLength() ).getStr() );
+ rtl::OStringBuffer sDirNameTmpB( rtl::OUStringToOString( sDirNameTmp , RTL_TEXTENCODING_UTF8 , sDirName.getLength() ).getStr() );
#ifdef WNT
- sDirNameTmpB.Append( ByteString("\\no_localization") );
+ sDirNameTmpB.append(RTL_CONSTASCII_STRINGPARAM("\\no_localization"));
#else
- sDirNameTmpB.Append( ByteString("/no_localization") );
+ sDirNameTmpB.append(RTL_CONSTASCII_STRINGPARAM("/no_localization"));
#endif
//printf("**** %s \n", OUStringToOString( sDirNameTmp , RTL_TEXTENCODING_UTF8 , sDirName.getLength() ).getStr() );
- DirEntry aDE( sDirNameTmpB.GetBuffer() );
+ DirEntry aDE(sDirNameTmpB.getStr());
if( aDE.Exists() )
{
//printf("#### no_localization file found ... skipping");