Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Another simple change attached.

The change is contributed under the LGPLv3+ / MPL.

Thanks,
Julien
From a8d064a78058693d7d2bf5ceaabc779b8290242d Mon Sep 17 00:00:00 2001
From: Julien Chaffraix <julien.chaffraix@gmail.com>
Date: Thu, 10 Nov 2011 07:23:29 -0800
Subject: [PATCH 2/2] Removed several String <-> OUString conversion in
 fsstor.

---
 svl/source/fsstor/fsstorage.cxx |    4 ++--
 svl/source/fsstor/fsstorage.hxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index 2a6e2ca..4c0dcac 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -180,9 +180,9 @@ FSStorage::~FSStorage()
 }
 
 //-----------------------------------------------
-sal_Bool FSStorage::MakeFolderNoUI( const String& rFolder, sal_Bool )
+sal_Bool FSStorage::MakeFolderNoUI( const ::rtl::OUString& rFolder, sal_Bool )
 {
-       INetURLObject aURL( rFolder );
+    INetURLObject aURL( rFolder );
     ::rtl::OUString aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, 
INetURLObject::DECODE_WITH_CHARSET );
     aURL.removeSegment();
     ::ucbhelper::Content aParent;
diff --git a/svl/source/fsstor/fsstorage.hxx b/svl/source/fsstor/fsstorage.hxx
index 7d8a144..87430ec 100644
--- a/svl/source/fsstor/fsstorage.hxx
+++ b/svl/source/fsstor/fsstorage.hxx
@@ -75,7 +75,7 @@ public:
     void CopyContentToStorage_Impl( ::ucbhelper::Content* pContent,
                                     const ::com::sun::star::uno::Reference< 
::com::sun::star::embed::XStorage >& xDest );
 
-    static sal_Bool MakeFolderNoUI( const String& rFolder, sal_Bool bNewOnly );
+    static sal_Bool MakeFolderNoUI( const ::rtl::OUString& rFolder, sal_Bool bNewOnly );
 
     
//____________________________________________________________________________________________________
     //  XInterface
-- 
1.7.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.