diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-20 17:15:15 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-22 18:47:09 +0000 |
commit | ad1386300562779606d958ea8289916cb9cbb8f8 (patch) | |
tree | d2825ec74621daad2dea81a155f4bc7d905bceaf /sc/qa | |
parent | 4d1d60719802ae34a9fc381c8f202ca80b7388ad (diff) |
convert SC_PASTE constants to scoped enum
Change-Id: I2c1b2cd5a89b3124a2e452800bf397e100cc885b
Reviewed-on: https://gerrit.libreoffice.org/18734
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 3299dd975dab..b5264dbd5196 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -6518,7 +6518,7 @@ void Test::testMixData() // Paste A1:B1 to A2:B2 and perform addition. pasteFromClip(m_pDoc, ScRange(0,1,0,1,1,0), &aClipDoc); - m_pDoc->MixDocument(ScRange(0,1,0,1,1,0), PASTE_ADD, false, &aMixDoc); + m_pDoc->MixDocument(ScRange(0,1,0,1,1,0), ScPasteFunc::ADD, false, &aMixDoc); CPPUNIT_ASSERT_EQUAL(3.0, m_pDoc->GetValue(0,1,0)); // A2 CPPUNIT_ASSERT_EQUAL(2.0, m_pDoc->GetValue(1,1,0)); // B2 @@ -6544,7 +6544,7 @@ void Test::testMixData() CPPUNIT_ASSERT_EQUAL(m_pDoc->GetValue(ScAddress(1,1,0)), aMixDoc.GetValue(ScAddress(1,1,0))); pasteFromClip(m_pDoc, ScRange(1,0,0,1,1,0), &aClipDoc); - m_pDoc->MixDocument(ScRange(1,0,0,1,1,0), PASTE_SUB, false, &aMixDoc); + m_pDoc->MixDocument(ScRange(1,0,0,1,1,0), ScPasteFunc::SUB, false, &aMixDoc); CPPUNIT_ASSERT_EQUAL( -3.0, m_pDoc->GetValue(ScAddress(1,0,0))); // 12 - 15 CPPUNIT_ASSERT_EQUAL(-16.0, m_pDoc->GetValue(ScAddress(1,1,0))); // 0 - 16 |