[Libreoffice-commits] .: tools/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Sep 19 02:39:12 PDT 2011


 tools/source/fsys/wntmsc.hxx |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

New commits:
commit 2ed25e1f8c21233cc8f5ee41d449408a7a2f555c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Sep 19 10:39:07 2011 +0100

    ByteString->rtl::OStringBuffer

diff --git a/tools/source/fsys/wntmsc.hxx b/tools/source/fsys/wntmsc.hxx
index 43b700f..ee09a1e 100644
--- a/tools/source/fsys/wntmsc.hxx
+++ b/tools/source/fsys/wntmsc.hxx
@@ -42,6 +42,7 @@
 #include <tools/solar.h>
 
 #include <tools/string.hxx>
+#include <rtl/strbuf.hxx>
 
 //--------------------------------------------------------------------
 
@@ -75,9 +76,10 @@ typedef struct
 
 inline sal_Bool DRIVE_EXISTS(char c)
 {
-    ByteString aDriveRoot( c );
-    aDriveRoot += ":\\";
-    return GetDriveType( aDriveRoot.GetBuffer() ) > 1;
+    rtl::OStringBuffer aDriveRoot;
+    aDriveRoot.append(c);
+    aDriveRoot.append(":\\");
+    return GetDriveType( aDriveRoot.getStr() ) > 1;
 }
 
 const char* TempDirImpl( char *pBuf );


More information about the Libreoffice-commits mailing list