diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-09-12 21:15:10 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-09-12 21:18:02 -0400 |
commit | c86b1a5c352df806166fc674fb3b85d334e4cb55 (patch) | |
tree | 56c724cfd23d18e0132d2b8fc2e9230548e883db /sc/source/core/data/cellvalue.cxx | |
parent | 14a25b343d98d7a4ebf9b6c03b09d1882c71d0b1 (diff) |
Change so that we won't have to include mtvelements.hxx in cellvalue.hxx.
Because mtvelements.hxx is very slow to parse by the compiler, and
cellvalue.hxx is included everywhere. Hopefully this will speed up the
compilation time of sc...
Change-Id: Ic9a9b8483c8325e4a91021f071f2391db8b57806
Diffstat (limited to 'sc/source/core/data/cellvalue.cxx')
-rw-r--r-- | sc/source/core/data/cellvalue.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sc/source/core/data/cellvalue.cxx b/sc/source/core/data/cellvalue.cxx index 2c4041886541..ba71d1ed4693 100644 --- a/sc/source/core/data/cellvalue.cxx +++ b/sc/source/core/data/cellvalue.cxx @@ -496,35 +496,6 @@ void ScRefCellValue::assign( ScDocument& rDoc, const ScAddress& rPos ) *this = rDoc.GetRefCellValue(rPos); } -void ScRefCellValue::assign( const sc::CellStoreType::const_iterator& itPos, size_t nOffset ) -{ - switch (itPos->type) - { - case sc::element_type_numeric: - // Numeric cell - mfValue = sc::numeric_block::at(*itPos->data, nOffset); - meType = CELLTYPE_VALUE; - break; - case sc::element_type_string: - // String cell - mpString = &sc::string_block::at(*itPos->data, nOffset); - meType = CELLTYPE_STRING; - break; - case sc::element_type_edittext: - // Edit cell - mpEditText = sc::edittext_block::at(*itPos->data, nOffset); - meType = CELLTYPE_EDIT; - break; - case sc::element_type_formula: - // Formula cell - mpFormula = sc::formula_block::at(*itPos->data, nOffset); - meType = CELLTYPE_FORMULA; - break; - default: - clear(); - } -} - void ScRefCellValue::commit( ScDocument& rDoc, const ScAddress& rPos ) const { switch (meType) |