From 9c8d87e46bba0eb9a3b8d923c6c630a359bf0f6c Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 6 Nov 2012 19:07:08 -0500 Subject: Use initializer to initialize data members. Change-Id: I912cede3a240ccd4e1cc94be46c7dfee36a85af6 --- sc/inc/column.hxx | 10 +--------- sc/source/core/data/column.cxx | 5 +++++ 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'sc') diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index cfe4bbe297d9..35316cdc1b24 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -67,14 +67,7 @@ struct ScNeededSizeOptions bool bGetFont; bool bTotalSize; - ScNeededSizeOptions() - { - pPattern = NULL; - bFormula = false; - bSkipMerged = true; - bGetFont = true; - bTotalSize = false; - } + ScNeededSizeOptions(); }; struct ColEntry @@ -83,7 +76,6 @@ struct ColEntry ScBaseCell* pCell; }; - class ScColumn { private: diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index d8037556fce8..4ee7923a13c1 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -49,6 +49,11 @@ inline bool IsAmbiguousScriptNonZero( sal_uInt8 nScript ) nScript != 0 ); } +ScNeededSizeOptions::ScNeededSizeOptions() : + pPattern(NULL), bFormula(false), bSkipMerged(true), bGetFont(true), bTotalSize(false) +{ +} + ScColumn::ScColumn() : nCol( 0 ), pAttrArray( NULL ), -- cgit