diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-01-21 16:46:47 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-21 16:46:47 -0500 |
commit | 126321ebe679376a13e807ff3b1c38acdb0b2f98 (patch) | |
tree | ba4a009aec6c0801f3625c4e97f317756b603391 /sc/qa | |
parent | f1d27b6d0a0e89ecae130d60decfc88531cce7ea (diff) |
Let's store ScDocument* in ScSheetSourceDesc.
This class already uses ScDocument* a lot internally. Let's just
take the pointer to the document instance in the ctor and store it
inside.
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 10e4a648ab07..d75f650681ed 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -569,7 +569,7 @@ void Test::testDataPilot() printer.print("Data sheet content"); printer.clear(); - ScSheetSourceDesc aSheetDesc; + ScSheetSourceDesc aSheetDesc(m_pDoc); aSheetDesc.SetSourceRange(ScRange(nCol1, nRow1, 0, nCol2, nRow2, 0)); ScDPObject* pDPObj = new ScDPObject(m_pDoc); pDPObj->SetSheetDesc(aSheetDesc); |