sc/qa/unit/ucalc.hxx | 2 +- sc/qa/unit/ucalc_formula.cxx | 22 +++++++++++----------- sc/qa/unit/ucalc_sharedformula.cxx | 2 +- sc/qa/unit/ucalc_sort.cxx | 2 +- sc/source/core/data/attarray.cxx | 2 +- sc/source/core/data/bcaslot.cxx | 2 +- sc/source/core/data/column2.cxx | 2 +- sc/source/core/data/column3.cxx | 2 +- sc/source/core/data/drwlayer.cxx | 8 ++++---- 9 files changed, 22 insertions(+), 22 deletions(-)
New commits: commit fb9a5d891a1211da7746fe26061937ec491cbb71 Author: Andrea Gelmini <andrea.gelm...@gelma.net> AuthorDate: Sun Aug 11 19:32:51 2019 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Mon Aug 12 11:04:14 2019 +0200 Fix typos Change-Id: Id5e35965c590dbf79e08e6d531b79696af9e9159 Reviewed-on: https://gerrit.libreoffice.org/77300 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx index ba85b9b78042..d5b0bdf7ab28 100644 --- a/sc/qa/unit/ucalc.hxx +++ b/sc/qa/unit/ucalc.hxx @@ -518,7 +518,7 @@ public: void testFormulaListenerUpdateDeleteTab(); // Check that the Listeners are correctly updated when we - // call a operation + // call an operation void testCondFormatUpdateMoveTab(); void testCondFormatUpdateDeleteTab(); void testCondFormatUpdateInsertTab(); diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index 716ac8defa5c..88ff18333622 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -7854,11 +7854,11 @@ void Test::testFuncGCD() CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of GCD for failed", 150.0, m_pDoc->GetValue(aPos)); m_pDoc->SetString(aPos, "=GCD({-3;6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with values less then 0", + CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with values less then 0", OUString("Err:502"), aVal); m_pDoc->SetString(aPos, "=GCD({\"a\";6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with strings", + CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with strings", OUString("Err:502"), aVal); //many inline array @@ -7868,11 +7868,11 @@ void Test::testFuncGCD() CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of GCD for failed", 150.0, m_pDoc->GetValue(aPos)); m_pDoc->SetString(aPos,"=GCD({3;6;9};{3;-6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with values less then 0", + CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with values less then 0", OUString("Err:502"), aVal); m_pDoc->SetString(aPos, "=GCD({3;6;9};{\"a\";6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for a array with strings", + CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return Err:502 for an array with strings", OUString("Err:502"), aVal); // inline list of values @@ -7882,7 +7882,7 @@ void Test::testFuncGCD() CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of GCD for failed", 12.0, m_pDoc->GetValue(aPos)); m_pDoc->SetString(aPos, "=GCD(\"a\";1)"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return #VALUE! for a array with strings", + CPPUNIT_ASSERT_EQUAL_MESSAGE("GCD should return #VALUE! for an array with strings", OUString("#VALUE!"), aVal); m_pDoc->DeleteTab(0); @@ -7951,11 +7951,11 @@ void Test::testFuncLCM() CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of LCM for failed", 0.0, m_pDoc->GetValue(aPos)); m_pDoc->SetString(aPos, "=LCM({-3;6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with values less then 0", + CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with values less then 0", OUString("Err:502"), aVal); m_pDoc->SetString(aPos, "=LCM({\"a\";6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with strings", + CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with strings", OUString("Err:502"), aVal); //many inline array @@ -7965,11 +7965,11 @@ void Test::testFuncLCM() CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of LCM for failed", 0.0, m_pDoc->GetValue(aPos)); m_pDoc->SetString(aPos,"=LCM({3;6;9};{3;-6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with values less then 0", + CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with values less then 0", OUString("Err:502"), aVal); m_pDoc->SetString(aPos, "=LCM({3;6;9};{\"a\";6;9})"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for a array with strings", + CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return Err:502 for an array with strings", OUString("Err:502"), aVal); m_pDoc->SetString(aPos, "=LCM(12;24;36;48;60)"); @@ -7978,7 +7978,7 @@ void Test::testFuncLCM() CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of LCM for failed", 0.0, m_pDoc->GetValue(aPos)); m_pDoc->SetString(aPos, "=LCM(\"a\";1)"); aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return #VALUE! for a array with strings", + CPPUNIT_ASSERT_EQUAL_MESSAGE("LCM should return #VALUE! for an array with strings", OUString("#VALUE!"), aVal); m_pDoc->DeleteTab(0); @@ -8053,7 +8053,7 @@ void Test::testFuncSUMSQ() CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of SUMSQ for failed", 7920.0, m_pDoc->GetValue(aPos)); m_pDoc->SetString(aPos, "=SUMSQ(\"a\";1;\"d\";-4;2)"); OUString aVal = m_pDoc->GetString(aPos); - CPPUNIT_ASSERT_EQUAL_MESSAGE("SUMSQ should return #VALUE! for a array with strings", + CPPUNIT_ASSERT_EQUAL_MESSAGE("SUMSQ should return #VALUE! for an array with strings", OUString("#VALUE!"), aVal); m_pDoc->DeleteTab(0); diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx index d07d7edaf391..5086af6515ee 100644 --- a/sc/qa/unit/ucalc_sharedformula.cxx +++ b/sc/qa/unit/ucalc_sharedformula.cxx @@ -137,7 +137,7 @@ void Test::testSharedFormulas() CPPUNIT_ASSERT_EQUAL(static_cast<SCROW>(12), pFC->GetSharedTopRow()); CPPUNIT_ASSERT_EQUAL(static_cast<SCROW>(6), pFC->GetSharedLength()); CPPUNIT_ASSERT_EQUAL_MESSAGE("The token is expected to be shared.", pFC->GetCode(), pFC->GetSharedCode()); - // B20 shold be non-shared. + // B20 should be non-shared. aPos.SetRow(19); // B20 pFC = m_pDoc->GetFormulaCell(aPos); CPPUNIT_ASSERT_MESSAGE("B20 should be a formula cell.", pFC); diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index 689177d7e42e..8fd4627d86ce 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -366,7 +366,7 @@ void Test::testSortSingleRow() m_pDoc->DeleteTab(0); } -// regression test fo fdo#53814, sorting doesn't work as expected +// regression test of fdo#53814, sorting doesn't work as expected // if cells in the sort are referenced by formulas void Test::testSortWithFormulaRefs() { diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx index 9431c468bfe6..060436585d08 100644 --- a/sc/source/core/data/attarray.cxx +++ b/sc/source/core/data/attarray.cxx @@ -575,7 +575,7 @@ const ScPatternAttr* ScAttrArray::SetPatternAreaImpl(SCROW nStartRow, SCROW nEnd } ScDocumentPool* pDocPool = pDocument->GetPool(); if ( bSplit ) - { // duplicate splitted entry in pool + { // duplicate split entry in pool pDocPool->Put( *mvData[ni-1].pPattern ); } if ( ni < nj ) diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx index 91fe7076409e..d01c9dc32dfe 100644 --- a/sc/source/core/data/bcaslot.cxx +++ b/sc/source/core/data/bcaslot.cxx @@ -161,7 +161,7 @@ bool ScBroadcastAreaSlot::StartListeningArea( if ( !rpArea ) { // Even if most times the area doesn't exist yet and immediately trying - // to new and insert it would save an attempt to find it, on mass + // to new and insert it would save an attempt to find it, on massive // operations like identical large [HV]LOOKUP() areas the new/delete // would add quite some penalty for all but the first formula cell. ScBroadcastAreas::const_iterator aIter( FindBroadcastArea( rRange, bGroupListening)); diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 151673e278af..4a0fcd00dc3c 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -1347,7 +1347,7 @@ bool ScColumn::GetPrevDataPos(SCROW& rRow) const return true; } - // This is the first cell in an non-empty block. Move back to the previous block. + // This is the first cell in a non-empty block. Move back to the previous block. if (it == maCells.begin()) // No more preceding block. return false; diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 5a65e5a2f306..b54912d658ab 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -1250,7 +1250,7 @@ public: } else if (bNumeric || bDateTime || bString) { - // Always just copy the original row to the Undo Documen; + // Always just copy the original row to the Undo Document; // do not create Value/string cells from formulas FormulaError nErr = rSrcCell.GetErrCode(); diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index a5232bad2a6c..a402fb3b32fc 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -690,7 +690,7 @@ void ScDrawLayer::ResizeLastRectFromAnchor(const SdrObject* pObj, ScDrawObjData& nCurrentHeight = nLastHeight; } - // get intial ScalingFactors + // get initial ScalingFactors double fWidthFactor(nCurrentWidth == nLastWidth || 0 == nLastWidth ? 1.0 : static_cast<double>(nCurrentWidth) / static_cast<double>(nLastWidth)); @@ -944,7 +944,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati ScDrawObjData& rNoRotatedAnchor = *GetNonRotatedObjData( pObj, true ); if (rData.getShapeRect().IsEmpty()) { - // Every shape it is saved with an negative offset relative to cell + // Every shape it is saved with a negative offset relative to cell ScAnchorType aAnchorType = ScDrawLayer::GetAnchorType(*pObj); if (aAnchorType == SCA_CELL || aAnchorType == SCA_CELL_RESIZE) { @@ -966,7 +966,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati // that the initial anchor we get here is in terms of an unrotated shape ( if the shape is rotated ) // we need to save the old anchor ( for persisting ) and also track any resize or repositions that happen. - // This is an evil hack, having a anchor that is one minute in terms of untransformed object and then later + // This is an evil hack, having an anchor that is one minute in terms of untransformed object and then later // in terms of the transformed object is not ideal, similarly having 2 anchors per object is wasteful, can't // see another way out of this at the moment though. rNoRotatedAnchor.maStart = rData.maStart; @@ -2144,7 +2144,7 @@ void ScDrawLayer::SetPageAnchored( SdrObject &rObj ) ScAnchorType ScDrawLayer::GetAnchorType( const SdrObject &rObj ) { //If this object has a cell anchor associated with it - //then its cell-anchored, otherwise its page-anchored + //then it's cell-anchored, otherwise it's page-anchored const ScDrawObjData* pObjData = ScDrawLayer::GetObjData(const_cast<SdrObject*>(&rObj)); // When there is no cell anchor, it is page anchored. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits