[Libreoffice-commits] .: tools/source

David Tardon dtardon at kemper.freedesktop.org
Fri Feb 17 00:15:04 PST 2012


 tools/source/fsys/dirent.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 243fbda523cb71d0919539081d286eec4717ce15
Author: David Tardon <dtardon at redhat.com>
Date:   Fri Feb 17 09:13:12 2012 +0100

    WaE: unused parameter

diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 3fa6869..ca4bef0 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -721,6 +721,8 @@ DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle )
 {
     DBG_CTOR( DirEntry, ImpCheckDirEntry );
 
+    (void) eStyle; // only used for DBG_UTIL
+
     pParent         = NULL;
 
     // schnelle Loesung fuer Leerstring
@@ -736,7 +738,9 @@ DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle )
     {
         DBG_WARNING( "File URLs are not permitted but accepted" );
         aTmpName = rtl::OUStringToOString(INetURLObject( rInitName ).PathToFileName(), osl_getThreadTextEncoding());
+#ifdef DBG_UTIL
                 eStyle = FSYS_STYLE_HOST;
+#endif
     }
     else
     {
@@ -773,6 +777,8 @@ DirEntry::DirEntry( const rtl::OString& rInitName, FSysPathStyle eStyle )
 {
     DBG_CTOR( DirEntry, ImpCheckDirEntry );
 
+    (void) eStyle; // only used for DBG_UTIL
+
     pParent         = NULL;
 
     // schnelle Loesung fuer Leerstring
@@ -788,7 +794,9 @@ DirEntry::DirEntry( const rtl::OString& rInitName, FSysPathStyle eStyle )
     {
         DBG_WARNING( "File URLs are not permitted but accepted" );
         aTmpName = rtl::OUStringToOString(INetURLObject( rInitName ).PathToFileName(), osl_getThreadTextEncoding());
+#ifdef DBG_UTIL
         eStyle = FSYS_STYLE_HOST;
+#endif
     }
 #ifdef DBG_UTIL
     else


More information about the Libreoffice-commits mailing list