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


Hi,

I send a patch for bug: 61516.

With regards,

Jiri Blecha (blechji4@fel.cvut.cz)

From a31b06a58396e9e3e6f604ed1be26bcaf6944871 Mon Sep 17 00:00:00 2001
From: Jiri Blecha <blechji4@fel.cvut.cz>
Date: Sat, 2 Mar 2013 17:25:06 +0100
Subject: [PATCH] [PATCH]

The macro FEAT_FSYS_DOUBLESPEED has been removed and the related #if / #endif have been removed too.

Bug: 61516
Change-Id: Id347e87a8789ddbe550dde7d7281d9c1cad0c199
---
 tools/inc/tools/fsys.hxx     |    8 ++------
 tools/source/fsys/dirent.cxx |   26 +++++++-------------------
 tools/source/fsys/fstat.cxx  |    3 +--
 tools/source/fsys/wntmsc.cxx |    4 ++--
 4 files changed, 12 insertions(+), 29 deletions(-)

diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index 293fea9..b710080 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -30,8 +30,6 @@
 #include <cstdarg>
 #include <vector>
 
-#define FEAT_FSYS_DOUBLESPEED
-
 // FSys-Types
 class DirEntry;
 class FileStat;
@@ -188,9 +186,8 @@ class TOOLS_DLLPUBLIC DirEntry
 friend struct DirReader_Impl;
 friend class FileCopier;
 
-#ifdef FEAT_FSYS_DOUBLESPEED
     FileStat*           pStat;      // optional
-#endif
+
     rtl::OString        aName;
     DirEntry*           pParent;
     sal_uIntPtr         nError;
@@ -214,10 +211,9 @@ protected:
     DirEntryFlag        ImpTheFlag() const { return eFlag; };
     DirEntry*           ImpChangeParent( DirEntry* pNewParent, sal_Bool bNormalize = sal_True );
     DirEntry*           ImpGetParent() { return pParent; }
-#ifdef FEAT_FSYS_DOUBLESPEED
+
     FileStat*           ImpGetStat() const { return pStat; }
     void                ImpSetStat( FileStat *p ) { pStat = p; }
-#endif
 
 protected:
     void                SetError( sal_uIntPtr nErr ) { nError = nErr; }
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index c4ae7a9..5b895d4 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -547,9 +547,7 @@ void DirEntry::ImpTrim()
 }
 
 DirEntry::DirEntry( const rtl::OString& rName, DirEntryFlag eDirFlag ) :
-#ifdef FEAT_FSYS_DOUBLESPEED
             pStat( 0 ),
-#endif
             aName( rName )
 {
     DBG_CTOR( DirEntry, ImpCheckDirEntry );
@@ -562,9 +560,7 @@ DirEntry::DirEntry( const rtl::OString& rName, DirEntryFlag eDirFlag ) :
 }
 
 DirEntry::DirEntry( const DirEntry& rOrig ) :
-#ifdef FEAT_FSYS_DOUBLESPEED
             pStat( rOrig.pStat ? new FileStat(*rOrig.pStat) : 0 ),
-#endif
             aName( rOrig.aName )
 {
     DBG_CTOR( DirEntry, ImpCheckDirEntry );
@@ -582,10 +578,8 @@ DirEntry::DirEntry( const DirEntry& rOrig ) :
     }
 }
 
-DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle )
-#ifdef FEAT_FSYS_DOUBLESPEED
-            : pStat( 0 )
-#endif
+DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle ) :
+            pStat( 0 )
 {
     DBG_CTOR( DirEntry, ImpCheckDirEntry );
 
@@ -636,10 +630,8 @@ DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle )
         eFlag = FSYS_FLAG_INVALID;
 }
 
-DirEntry::DirEntry( const rtl::OString& rInitName, FSysPathStyle eStyle )
-#ifdef FEAT_FSYS_DOUBLESPEED
-            : pStat( 0 )
-#endif
+DirEntry::DirEntry( const rtl::OString& rInitName, FSysPathStyle eStyle ) :
+            pStat( 0 )
 {
     DBG_CTOR( DirEntry, ImpCheckDirEntry );
 
@@ -682,10 +674,8 @@ DirEntry::DirEntry( const rtl::OString& rInitName, FSysPathStyle eStyle )
         eFlag = FSYS_FLAG_INVALID;
 }
 
-DirEntry::DirEntry( DirEntryFlag eDirFlag )
-#ifdef FEAT_FSYS_DOUBLESPEED
-            : pStat( 0 )
-#endif
+DirEntry::DirEntry( DirEntryFlag eDirFlag ) :
+            pStat( 0 )
 {
     DBG_CTOR( DirEntry, ImpCheckDirEntry );
 
@@ -699,10 +689,8 @@ DirEntry::~DirEntry()
     DBG_DTOR( DirEntry, ImpCheckDirEntry );
 
     delete pParent;
-#ifdef FEAT_FSYS_DOUBLESPEED
-    delete pStat;
-#endif
 
+    delete pStat;
 }
 
 const DirEntry* DirEntry::ImpGetTopPtr() const
diff --git a/tools/source/fsys/fstat.cxx b/tools/source/fsys/fstat.cxx
index bf1c6b7..a0bbae1 100644
--- a/tools/source/fsys/fstat.cxx
+++ b/tools/source/fsys/fstat.cxx
@@ -39,7 +39,6 @@ FileStat::FileStat( const DirEntry& rDirEntry, FSysAccess nAccess )
     sal_Bool bCached = FSYS_ACCESS_CACHED == (nAccess & FSYS_ACCESS_CACHED);
     sal_Bool bFloppy = FSYS_ACCESS_FLOPPY == (nAccess & FSYS_ACCESS_FLOPPY);
 
-#ifdef FEAT_FSYS_DOUBLESPEED
     const FileStat *pStatFromDir = bCached ? rDirEntry.ImpGetStat() : 0;
     if ( pStatFromDir )
     {
@@ -56,7 +55,7 @@ FileStat::FileStat( const DirEntry& rDirEntry, FSysAccess nAccess )
         aTimeAccessed = pStatFromDir->aTimeAccessed;
     }
     else
-#endif
+
         Update( rDirEntry, bFloppy );
 }
 
diff --git a/tools/source/fsys/wntmsc.cxx b/tools/source/fsys/wntmsc.cxx
index 7c74ed4..12638e8 100644
--- a/tools/source/fsys/wntmsc.cxx
+++ b/tools/source/fsys/wntmsc.cxx
@@ -279,9 +279,9 @@ USHORT DirReader_Impl::Read()
                 :   FSYS_FLAG_NORMAL;
             DirEntry *pTemp = new DirEntry( rtl::OString(pDosEntry->d_name),
                                             eFlag );
-#ifdef FEAT_FSYS_DOUBLESPEED
+
             pTemp->ImpSetStat( new FileStat( (void*) pDosDir ) );
-#endif
+
             if ( pParent )
                 pTemp->ImpChangeParent( new DirEntry( *pParent ), sal_False );
             if ( pDir->pStatLst ) // Status required by sorting criteria?
-- 
1.7.10.4


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.