[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Nov 15 18:27:39 PST 2011


 sc/source/ui/docshell/docsh.cxx |   82 ++++++++++++++++++++++------------------
 1 file changed, 47 insertions(+), 35 deletions(-)

New commits:
commit d8bb96e54339133a708eaa82b37730f793680497
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Tue Nov 15 21:27:29 2011 -0500

    Let's not use macro for this sort of stuff.

diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index fd4efe4..c5e6002 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -2489,38 +2489,31 @@ sal_Bool ScDocShell::HasAutomaticTableName( const String& rFilter )
         || rFilter.EqualsAscii( pFilterRtf );
 }
 
-//==================================================================
-
-#define __SCDOCSHELL_INIT \
-        aDocument       ( SCDOCMODE_DOCUMENT, this ), \
-        aDdeTextFmt(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("TEXT"))), \
-        nPrtToScreenFactor( 1.0 ), \
-        pImpl           ( new DocShell_Impl ), \
-        bHeaderOn       ( true ), \
-        bFooterOn       ( true ), \
-        bIsEmpty        ( true ), \
-        bIsInUndo       ( false ), \
-        bDocumentModifiedPending( false ), \
-        bUpdateEnabled  ( true ), \
-        nDocumentLock   ( 0 ), \
-        nCanUpdate (com::sun::star::document::UpdateDocMode::ACCORDING_TO_CONFIG), \
-        pOldAutoDBRange ( NULL ), \
-        pDocHelper      ( NULL ), \
-        pAutoStyleList  ( NULL ), \
-        pPaintLockData  ( NULL ), \
-        pOldJobSetup    ( NULL ), \
-        pSolverSaveData ( NULL ), \
-        pSheetSaveData  ( NULL ), \
-        pModificator    ( NULL )
-
-//------------------------------------------------------------------
-
-ScDocShell::ScDocShell( const ScDocShell& rShell )
-    :   SvRefBase(),
-        SotObject(),
-        SfxObjectShell( rShell.GetCreateMode() ),
-        SfxListener(),
-        __SCDOCSHELL_INIT
+ScDocShell::ScDocShell( const ScDocShell& rShell ) :
+    SvRefBase(),
+    SotObject(),
+    SfxObjectShell( rShell.GetCreateMode() ),
+    SfxListener(),
+    aDocument       ( SCDOCMODE_DOCUMENT, this ),
+    aDdeTextFmt(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("TEXT"))),
+    nPrtToScreenFactor( 1.0 ),
+    pImpl           ( new DocShell_Impl ),
+    bHeaderOn       ( true ),
+    bFooterOn       ( true ),
+    bIsEmpty        ( true ),
+    bIsInUndo       ( false ),
+    bDocumentModifiedPending( false ),
+    bUpdateEnabled  ( true ),
+    nDocumentLock   ( 0 ),
+    nCanUpdate (com::sun::star::document::UpdateDocMode::ACCORDING_TO_CONFIG),
+    pOldAutoDBRange ( NULL ),
+    pDocHelper      ( NULL ),
+    pAutoStyleList  ( NULL ),
+    pPaintLockData  ( NULL ),
+    pOldJobSetup    ( NULL ),
+    pSolverSaveData ( NULL ),
+    pSheetSaveData  ( NULL ),
+    pModificator    ( NULL )
 {
     RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDocShell::ScDocShell" );
 
@@ -2546,9 +2539,28 @@ ScDocShell::ScDocShell( const ScDocShell& rShell )
 
 //------------------------------------------------------------------
 
-ScDocShell::ScDocShell( const sal_uInt64 i_nSfxCreationFlags )
-    :   SfxObjectShell( i_nSfxCreationFlags )
-    ,   __SCDOCSHELL_INIT
+ScDocShell::ScDocShell( const sal_uInt64 i_nSfxCreationFlags ) :
+    SfxObjectShell( i_nSfxCreationFlags ),
+    aDocument       ( SCDOCMODE_DOCUMENT, this ),
+    aDdeTextFmt(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("TEXT"))),
+    nPrtToScreenFactor( 1.0 ),
+    pImpl           ( new DocShell_Impl ),
+    bHeaderOn       ( true ),
+    bFooterOn       ( true ),
+    bIsEmpty        ( true ),
+    bIsInUndo       ( false ),
+    bDocumentModifiedPending( false ),
+    bUpdateEnabled  ( true ),
+    nDocumentLock   ( 0 ),
+    nCanUpdate (com::sun::star::document::UpdateDocMode::ACCORDING_TO_CONFIG),
+    pOldAutoDBRange ( NULL ),
+    pDocHelper      ( NULL ),
+    pAutoStyleList  ( NULL ),
+    pPaintLockData  ( NULL ),
+    pOldJobSetup    ( NULL ),
+    pSolverSaveData ( NULL ),
+    pSheetSaveData  ( NULL ),
+    pModificator    ( NULL )
 {
     RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDocShell::ScDocShell" );
 


More information about the Libreoffice-commits mailing list