summaryrefslogtreecommitdiff
path: root/tools/source/stream/strmwnt.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-25 16:30:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-25 20:17:17 +0000
commitcbb2b42f113e29609161d8bdbeb667a2164a4d1a (patch)
tree9c56718f55532a872a230cf521da14702095c807 /tools/source/stream/strmwnt.cxx
parent4e34d8fd5b64a18dd17faf4ed4d603648bab8311 (diff)
ByteString->rtl::OString
Diffstat (limited to 'tools/source/stream/strmwnt.cxx')
-rw-r--r--tools/source/stream/strmwnt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/stream/strmwnt.cxx b/tools/source/stream/strmwnt.cxx
index c9dae13019a7..409504d428fa 100644
--- a/tools/source/stream/strmwnt.cxx
+++ b/tools/source/stream/strmwnt.cxx
@@ -397,7 +397,7 @@ void SvFileStream::Open( const String& rFilename, StreamMode nMode )
// !!! DirEntry aDirEntry( rFilename );
// !!! aFilename = aDirEntry.GetFull();
aFilename = aParsedFilename;
- ByteString aFileNameA( aFilename, osl_getThreadTextEncoding());
+ rtl::OString aFileNameA(rtl::OUStringToOString(aFilename, osl_getThreadTextEncoding()));
#ifndef BOOTSTRAP
FSysRedirector::DoRedirect( aFilename );
#endif
@@ -442,7 +442,7 @@ void SvFileStream::Open( const String& rFilename, StreamMode nMode )
}
pInstanceData->hFile = CreateFile(
- aFileNameA.GetBuffer(),
+ aFileNameA.getStr(),
nAccessMode,
nShareMode,
(LPSECURITY_ATTRIBUTES)NULL,
@@ -476,7 +476,7 @@ void SvFileStream::Open( const String& rFilename, StreamMode nMode )
nOpenAction = OPEN_EXISTING;
SetLastError( ERROR_SUCCESS );
pInstanceData->hFile = CreateFile(
- aFileNameA.GetBuffer(),
+ aFileNameA.getStr(),
GENERIC_READ,
nShareMode,
(LPSECURITY_ATTRIBUTES)NULL,