From ad4104090de1cb07fb82bb40c736271103e4ed69 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Fri, 24 Mar 2017 12:45:11 +0100 Subject: Fix typos Change-Id: Ia17fe891f8a681ada69639ca579ebf6d6d781759 Reviewed-on: https://gerrit.libreoffice.org/35641 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- sc/inc/markdata.hxx | 2 +- sc/qa/unit/subsequent_filters-test.cxx | 4 ++-- sc/qa/unit/ucalc_formula.cxx | 2 +- sc/qa/unit/ucalc_sort.cxx | 2 +- sc/source/core/data/dociter.cxx | 2 +- sc/source/core/data/documen3.cxx | 2 +- sc/source/core/data/formulacell.cxx | 2 +- sc/source/core/data/table2.cxx | 2 +- sc/source/core/opencl/op_spreadsheet.cxx | 2 +- sc/source/core/tool/chartpos.cxx | 2 +- sc/source/core/tool/formulaopt.cxx | 2 +- sc/source/core/tool/interpr3.cxx | 2 +- sc/source/core/tool/interpr5.cxx | 2 +- sc/source/core/tool/interpr8.cxx | 4 ++-- sc/source/filter/excel/xichart.cxx | 2 +- sc/source/filter/excel/xihelper.cxx | 2 +- sc/source/filter/inc/scflt.hxx | 2 +- sc/source/filter/inc/xiescher.hxx | 2 +- sc/source/filter/oox/pivotcachebuffer.cxx | 2 +- sc/source/filter/xml/pivotsource.hxx | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) (limited to 'sc') diff --git a/sc/inc/markdata.hxx b/sc/inc/markdata.hxx index d11173c301fd..2f182eeb9426 100644 --- a/sc/inc/markdata.hxx +++ b/sc/inc/markdata.hxx @@ -142,7 +142,7 @@ public: void InsertTab( SCTAB nTab ); void DeleteTab( SCTAB nTab ); - // Generate envelopes if mutimarked and fills the passed ScRange object with + // Generate envelopes if multimarked and fills the passed ScRange object with // the smallest range that includes the marked area plus its envelopes. void GetSelectionCover( ScRange& rRange ); // Get top, bottom, left and right envelopes diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index 81bb3dc719d0..29a8802bf1e0 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -668,7 +668,7 @@ void ScFiltersTest::testCachedFormulaResultsODS() //we want to me sure that volatile functions are always recalculated //regardless of cached results. if you update the ods file, you must //update the values here. - //if NOW() is recacluated, then it should never equal sTodayCache + //if NOW() is recalcuated, then it should never equal sTodayCache OUString sTodayCache("01/25/13 01:06 PM"); OUString sTodayRecalc(rDoc.GetString(0,0,1)); @@ -1012,7 +1012,7 @@ struct Border SvxBorderLineStyle tStyle; SvxBorderLineStyle rStyle; SvxBorderLineStyle bStyle; - // that's a monstrum + // that's a monster Border(sal_Int16 col, sal_Int32 r, sal_Int32 lW, sal_Int32 tW, sal_Int32 rW, sal_Int32 bW, sal_uInt16 lOutW, sal_uInt16 lInW, sal_uInt16 lDist, sal_uInt16 tOutW, sal_uInt16 tInW, sal_uInt16 tDist, sal_uInt16 rOutW, sal_uInt16 rInW, sal_uInt16 rDist, sal_uInt16 bOutW, sal_uInt16 bInW, sal_uInt16 bDist, sal_Int16 lSt, sal_Int16 tSt, sal_Int16 rSt, sal_Int16 bSt): diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index c7f47709eca1..a10f552933e6 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -187,7 +187,7 @@ void Test::testFormulaCreateStringFromTokens() sc::TokenStringContext aCxt(m_pDoc, formula::FormulaGrammar::GRAM_ENGLISH); - // Artificially add external refererence data after the context object is + // Artificially add external reference data after the context object is // initialized. aCxt.maExternalFileNames.push_back("file:///path/to/fake.file"); std::vector aExtTabNames; diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index 7a071c37269f..719ea1ab6a52 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -398,7 +398,7 @@ void Test::testSortWithFormulaRefs() for (SCROW i = 1; i <= 4; ++i) m_pDoc->SetString( 0, i, 0, OUString::createFromAscii(aTextData[i-1]) ); - // Insert forumulas in A1:A6 on the 2nd sheet. + // Insert formulas in A1:A6 on the 2nd sheet. for (size_t i = 0; i < SAL_N_ELEMENTS(aFormulaData); ++i) m_pDoc->SetString( 0, i, 1, OUString::createFromAscii(aFormulaData[i]) ); diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index a223b48a52cd..c0d534d25073 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -2076,7 +2076,7 @@ bool ScHorizontalCellIterator::SkipInvalidInRow() } else { - debugiter("advanced column %d to block starting row %d, retying\n", + debugiter("advanced column %d to block starting row %d, retrying\n", (int)maColPos->mnCol, r.maPos->position); } } diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index bbece70341f4..413cc8687c24 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -463,7 +463,7 @@ void ScDocument::GetScenarioFlags( SCTAB nTab, ScScenarioFlags& rFlags ) const bool ScDocument::IsLinked( SCTAB nTab ) const { return ValidTab(nTab) && nTab < static_cast(maTabs.size()) && maTabs[nTab] && maTabs[nTab]->IsLinked(); - // euqivalent to + // equivalent to //if (ValidTab(nTab) && pTab[nTab]) // return pTab[nTab]->IsLinked(); //return false; diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index ec26a6942f67..80179ae9aaac 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -1593,7 +1593,7 @@ void ScFormulaCell::Interpret() // Mark older cells dirty again, in case they converted // without accounting for all remaining cells in the circle // that weren't touched so far, e.g. conditional. Restore - // backuped result. + // backupped result. sal_uInt16 nIteration = rRecursionHelper.GetIteration(); for (ScFormulaRecursionList::const_iterator aIter( aOldStart); aIter != diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 25f81d0d4cac..f1c51306e3d4 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -808,7 +808,7 @@ public: *p, mrClipTab.GetDoc(), getDestPos(nRow), ScCloneFlags::StartListening); // rotate reference - // for Cut, the referneces are later adjusted through UpdateTranspose + // for Cut, the references are later adjusted through UpdateTranspose if (!mbWasCut) pNew->TransposeReference(); diff --git a/sc/source/core/opencl/op_spreadsheet.cxx b/sc/source/core/opencl/op_spreadsheet.cxx index 243d2993bca3..02acb8dce248 100644 --- a/sc/source/core/opencl/op_spreadsheet.cxx +++ b/sc/source/core/opencl/op_spreadsheet.cxx @@ -45,7 +45,7 @@ void OpVLookup::GenSlidingWindowFunction(std::stringstream &ss, CheckSubArgumentIsNan(ss,vSubArguments,arg++); int secondParaWidth = 1; - // tdf#99512 - for now only allow non-dynamic indicees (the + // tdf#99512 - for now only allow non-dynamic indices (the // common-case) to validate consistent return types vs. the input. int index = 0; int indexArg = vSubArguments.size() - 2; diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx index 7d820e437658..5ab46a12e6a2 100644 --- a/sc/source/core/tool/chartpos.cxx +++ b/sc/source/core/tool/chartpos.cxx @@ -366,7 +366,7 @@ void ScChartPositioner::CreatePositionMap() pR->GetVars( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2 ); for ( nTab = nTab1; nTab <= nTab2; nTab++ ) { - // nTab in ColKey to allow to have the same col/row in another tabe + // nTab in ColKey to allow to have the same col/row in another table sal_uLong nInsCol = (static_cast(nTab) << 16) | (bNoGlue ? 0 : static_cast(nCol1)); for ( nCol = nCol1; nCol <= nCol2; ++nCol, ++nInsCol ) diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx index 4430b73db826..fd1d456fc5e2 100644 --- a/sc/source/core/tool/formulaopt.cxx +++ b/sc/source/core/tool/formulaopt.cxx @@ -273,7 +273,7 @@ void ScFormulaCfg::UpdateFromProperties( const Sequence& aNames ) do { if (!(pValues[nProp] >>= nIntVal)) - // extractino failed. + // extracting failed. break; switch (nIntVal) diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx index bef7725393c0..e2d9d2f8c1ff 100644 --- a/sc/source/core/tool/interpr3.cxx +++ b/sc/source/core/tool/interpr3.cxx @@ -1801,7 +1801,7 @@ void ScInterpreter::ScPoissonDist( bool bODFF ) } else { - if (x >= 936.0) // result is always undistinghable from 1 + if (x >= 936.0) // result is always indistinguishable from 1 PushDouble (1.0); else { diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx index 574273417fb6..491c90388e12 100644 --- a/sc/source/core/tool/interpr5.cxx +++ b/sc/source/core/tool/interpr5.cxx @@ -649,7 +649,7 @@ static int lcl_LUP_decompose( ScMatrix* mA, const SCSIZE n, // Represent identity permutation, P[i]=i for (SCSIZE i=0; i < n; ++i) P[i] = i; - // "Recursion" on the diagonale. + // "Recursion" on the diagonal. SCSIZE l = n - 1; for (SCSIZE k=0; k < l; ++k) { diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx index 28a91fc08f0e..3c3ace2fb8d9 100644 --- a/sc/source/core/tool/interpr8.cxx +++ b/sc/source/core/tool/interpr8.cxx @@ -90,7 +90,7 @@ private: double mfRMSE; // root mean squared error (standard deviation) double mfSMAPE; // symmetric mean absolute error FormulaError mnErrorValue; - bool bAdditive; // true: additive method, false: mulitplicative method + bool bAdditive; // true: additive method, false: multiplicative method bool bEDS; // true: EDS, false: ETS // constants used in determining best fit for alpha, beta, gamma @@ -391,7 +391,7 @@ bool ScETSForecastCalculation::PreprocessDataRange( const ScMatrixRef& rMatX, co bool ScETSForecastCalculation::initData( ) { - // give variuous vectors size and initial value + // give various vectors size and initial value mpBase = new double[ mnCount ]; mpTrend = new double[ mnCount ]; if ( !bEDS ) diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index d7fb26f5a7f0..4f178d716425 100644 --- a/sc/source/filter/excel/xichart.cxx +++ b/sc/source/filter/excel/xichart.cxx @@ -3029,7 +3029,7 @@ void XclImpChLabelRange::ConvertAxisPosition( ScfPropertySet& rPropSet, bool b3d /* Crossing position value depends on base time unit, it specifies the number of days, months, or years from null date. Note that Excel 2007/2010 write broken BIFF8 files, they always stores the number - of days cregardless of the base time unit (and they are reading it + of days regardless of the base time unit (and they are reading it the same way, thus wrongly displaying files written by Excel 97-2003). This filter sticks to the correct behaviour of Excel 97-2003. */ diff --git a/sc/source/filter/excel/xihelper.cxx b/sc/source/filter/excel/xihelper.cxx index 20f5e33dd256..11655d5a1fb6 100644 --- a/sc/source/filter/excel/xihelper.cxx +++ b/sc/source/filter/excel/xihelper.cxx @@ -299,7 +299,7 @@ void XclImpHFConverter::ParseString( const OUString& rHFString ) } eState = xlPSText; const sal_Unicode* pChar = rHFString.getStr(); - const sal_Unicode* pNull = pChar + rHFString.getLength(); // pointer to teminating null char + const sal_Unicode* pNull = pChar + rHFString.getLength(); // pointer to terminating null char while( *pChar ) { switch( eState ) diff --git a/sc/source/filter/inc/scflt.hxx b/sc/source/filter/inc/scflt.hxx index f1d74a93ec51..bff355c044ba 100644 --- a/sc/source/filter/inc/scflt.hxx +++ b/sc/source/filter/inc/scflt.hxx @@ -507,7 +507,7 @@ struct Sc10ImageHeader // ChartHeader struct Sc10ChartHeader { - sal_Int16 MM; // Meatfile structure MapMode, Width, Hight + sal_Int16 MM; // Metafile structure MapMode, width, height sal_Int16 xExt; sal_Int16 yExt; sal_uInt32 Size; // image size in BYTES diff --git a/sc/source/filter/inc/xiescher.hxx b/sc/source/filter/inc/xiescher.hxx index 185ee9a3f388..b564a8e26e71 100644 --- a/sc/source/filter/inc/xiescher.hxx +++ b/sc/source/filter/inc/xiescher.hxx @@ -258,7 +258,7 @@ protected: protected: XclImpDrawObjVector maChildren; /// Grouped objects. - sal_uInt16 mnFirstUngrouped; /// Object identfier of first object not grouped into this group. + sal_uInt16 mnFirstUngrouped; /// Object identifier of first object not grouped into this group. }; /** A line object. */ diff --git a/sc/source/filter/oox/pivotcachebuffer.cxx b/sc/source/filter/oox/pivotcachebuffer.cxx index 4c6b27fa4114..088a6a6d1478 100644 --- a/sc/source/filter/oox/pivotcachebuffer.cxx +++ b/sc/source/filter/oox/pivotcachebuffer.cxx @@ -646,7 +646,7 @@ OUString PivotCacheField::createParentGroupField( const Reference< XDataPilotFie { if ( const PivotCacheItem* pItem = rBaseCacheField.getCacheItems().getCacheItem( aIt - aBeg ) ) { - // Skip unspecified or ununsed entries or errors + // Skip unspecified or unused entries or errors if ( pItem->isUnused() || ( pItem->getType() == XML_m ) || ( pItem->getType() == XML_e ) ) continue; } diff --git a/sc/source/filter/xml/pivotsource.hxx b/sc/source/filter/xml/pivotsource.hxx index 83136164d120..ed4a40b01263 100644 --- a/sc/source/filter/xml/pivotsource.hxx +++ b/sc/source/filter/xml/pivotsource.hxx @@ -20,7 +20,7 @@ namespace sc { /** - * Store pivot table data that need to be post-processeed at the end of the + * Store pivot table data that need to be post-processed at the end of the * import. */ struct PivotTableSources -- cgit