summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2016-11-12 17:10:56 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2016-11-12 17:21:53 -0500
commit4b57b76b6e0200a1fbbf40b98ff1d05793223287 (patch)
treeaf33feabc1f918ce656cbfe6e346ee258a7e4d00
parent5a8fce7c5607ede6675effe410cbe29e343b6885 (diff)
Let's not dump formula results.
It could be too verbose. Change-Id: I5f2da92e78bb069f3bb0c9c07bb3eae6d990f810
-rw-r--r--sc/source/core/data/column2.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 1d63bf6a3ca2..9c7eb79e564b 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1567,6 +1567,8 @@ void ScColumn::CellStorageModified()
namespace {
+#define DUMP_FORMULA_RESULTS 0
+
struct FormulaGroupDumper : std::unary_function<sc::CellStoreType::value_type, void>
{
const ScDocument* mpDoc;
@@ -1620,9 +1622,10 @@ struct FormulaGroupDumper : std::unary_function<sc::CellStoreType::value_type, v
{
sc::TokenStringContext aCxt(mpDoc, mpDoc->GetGrammar());
OUString aFormula = pCell->GetCode()->CreateString(aCxt, pCell->aPos);
- cout << " * formula: " << aFormula << endl;
+ cout << " * formula: " << aFormula << endl;
}
+#if DUMP_FORMULA_RESULTS
void printResult(const ScFormulaCell* pCell) const
{
sc::FormulaResultValue aRes = pCell->GetResult();
@@ -1645,6 +1648,9 @@ struct FormulaGroupDumper : std::unary_function<sc::CellStoreType::value_type, v
cout << endl;
}
+#else
+ void printResult(const ScFormulaCell*) const {}
+#endif
};
}