[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sfx2/source

Petr Mladek pmladek at kemper.freedesktop.org
Mon Jun 11 08:19:55 PDT 2012


 sfx2/source/dialog/filedlghelper.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 15e3ecfcf24ff86290d3d24b456252afe17d5af1
Author: Petr Mladek <pmladek at suse.cz>
Date:   Mon Jun 11 17:16:15 2012 +0200

    fix sfx2/source/dialog/filedlghelper.cxx to compile again
    
    related to the new string stuff
    
    Change-Id: I628fe5c59fd9a6e3a98d0fab422a800ced6ca119

diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index dc07d89..fa74ea5 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -100,8 +100,10 @@
 #include "filedlgimpl.hxx"
 #include <helpid.hrc>
 #include <sfxlocal.hrc>
+#include <rtl/oustringostreaminserter.hxx>
 #include <rtl/strbuf.hxx>
 #ifdef UNX
+#include <errno.h>
 #include <sys/stat.h>
 #endif
 
@@ -1663,7 +1665,7 @@ void FileDialogHelper_Impl::verifyPath()
     }
     INetURLObject url(maPath);
     if (url.GetProtocol() != INET_PROT_FILE
-        || url.getName(0, true, INetURLObject::DECODE_WITH_CHARSET) != "tmp")
+        || !(url.getName(0, true, INetURLObject::DECODE_WITH_CHARSET)).equalsAscii("tmp"))
     {
         return;
     }


More information about the Libreoffice-commits mailing list