diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bootstrp/mkunroll/mkunroll.cxx | 5 | ||||
-rw-r--r-- | tools/source/fsys/unx.cxx | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/tools/bootstrp/mkunroll/mkunroll.cxx b/tools/bootstrp/mkunroll/mkunroll.cxx index d315af5b6305..9068ee240088 100644 --- a/tools/bootstrp/mkunroll/mkunroll.cxx +++ b/tools/bootstrp/mkunroll/mkunroll.cxx @@ -210,9 +210,8 @@ void MkFilter::Filter() for ( size_t i=0; i<nCount; i++ ) { MkLine *pMkLine = (*pLine->pPrivateTnrLst)[ i ]; - ByteString aLine = pMkLine->aLine; - while( aLine.SearchAndReplace( aTnr, rtl::OString::valueOf(static_cast<sal_Int32>(n)) ) != (sal_uInt16)-1 ) ; - fputs( aLine.GetBuffer(), pOut ); + rtl::OString aLine = pMkLine->aLine.replaceAll(aTnr, rtl::OString::valueOf(static_cast<sal_Int32>(n))); + fputs( aLine.getStr(), pOut ); fprintf( stderr, "o" ); } } diff --git a/tools/source/fsys/unx.cxx b/tools/source/fsys/unx.cxx index 007dc81d951c..1e3f408260c3 100644 --- a/tools/source/fsys/unx.cxx +++ b/tools/source/fsys/unx.cxx @@ -75,9 +75,9 @@ struct mnttab struct mymnttab { dev_t mountdevice; - ByteString mountspecial; - ByteString mountpoint; - ByteString mymnttab_filesystem; + rtl::OString mountspecial; + rtl::OString mountpoint; + rtl::OString mymnttab_filesystem; mymnttab() { mountdevice = (dev_t) -1; } }; |