diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-06 19:07:08 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-06 10:50:33 -0500 |
commit | 9c8d87e46bba0eb9a3b8d923c6c630a359bf0f6c (patch) | |
tree | d15d511dd08088625a7c694c02ed06cc03e7a9ca /sc | |
parent | ba42d88d95cdc7fe6130b3bd3a41e8c731110238 (diff) |
Use initializer to initialize data members.
Change-Id: I912cede3a240ccd4e1cc94be46c7dfee36a85af6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/column.hxx | 10 | ||||
-rw-r--r-- | sc/source/core/data/column.cxx | 5 |
2 files changed, 6 insertions, 9 deletions
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 ), |