From c3ae29c31273ebecb58fd8a6ec980b1e7eab14c8 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Sat, 22 Aug 2026 13:12:55 +0200 Subject: [PATCH] Fix typos Change-Id: Ic111b676ec93509a4cf9ad0f691f34f940a798b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209501 Tested-by: Julien Nabet Reviewed-by: Julien Nabet --- sc/source/ui/dbgui/scuiasciiopt.cxx | 14 +++++++------- sc/source/ui/dbgui/tpsort.cxx | 2 +- sc/source/ui/inc/inputhdl.hxx | 2 +- sc/source/ui/inc/undo/UndoUngroupSparklines.hxx | 2 +- sc/source/ui/navipi/content.cxx | 2 +- sc/source/ui/unoobj/scdetect.cxx | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index c7c9b2c05d73..6cb770426775 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -384,12 +384,12 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, std::u16string_view aD // 2) copy paste of 2 CJK lines in Calc from another application // sc/source/ui/view/viewfun5.cxx ScViewFunc::PasteDataFormatFormattedText, // part "nFormatId == SotClipboardFormatId::STRING || nFormatId == SotClipboardFormatId::STRING_TSVC..." - // (eg: tdf#172587). In this part, we use ScImportStringStream which sets explicitely the encoding to RTL_TEXTENCODING_UNICODE + // (eg: tdf#172587). In this part, we use ScImportStringStream which sets explicitly the encoding to RTL_TEXTENCODING_UNICODE // => we don't need to call DetectEncoding // // 3) use of Text to Columns function (in Calc/Data) // sc/source/ui/view/cellsh2.cxx ScCellShell::ExecuteDB, part SID_TEXT_TO_COLUMNS - // (eg: tdf#166299). In this part, we use a SvMemoryStream and we already sets the encoding to RTL_TEXTENCODING_UNICODE + // (eg: tdf#166299). In this part, we use a SvMemoryStream and we already set the encoding to RTL_TEXTENCODING_UNICODE // => we don't need to call DetectEncoding // Retrieve encoding, first time from the stream @@ -502,7 +502,7 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, std::u16string_view aD if (nFromRow != 1) { mxNfRow->set_value(nFromRow); - // tdf#163638 - show visual indicator for from rows + // tdf#163638 - show visual indicator for the "From Row" value mxTableBox->GetGrid().Execute(CSVCMD_SETFIRSTIMPORTLINE, nFromRow - 1); } mxNfRow->connect_value_changed(LINK(this, ScImportAsciiDlg, FirstRowHdl)); @@ -563,7 +563,7 @@ bool ScImportAsciiDlg::GetLine( sal_uLong nLine, OUString &rText, sal_Unicode& r if (!mpRowPosArray) mpRowPosArray.reset( new sal_uLong[ASCIIDLG_MAXROWS + 2] ); - if (!mnRowPosCount) // complete re-fresh + if (!mnRowPosCount) // complete refresh { memset( mpRowPosArray.get(), 0, sizeof(mpRowPosArray[0]) * (ASCIIDLG_MAXROWS+2)); @@ -604,10 +604,10 @@ bool ScImportAsciiDlg::GetLine( sal_uLong nLine, OUString &rText, sal_Unicode& r mnStreamPos = mpDatStream->Tell(); } - // If the file content isn't unicode, ReadUniStringLine + // If the file content isn't Unicode, ReadUniStringLine // may try to seek beyond the file's end and cause a CANTSEEK error // (depending on the stream type). The error code has to be cleared, - // or further read operations (including non-unicode) will fail. + // or further read operations (including non-Unicode) will fail. if ( mpDatStream->GetError() == ERRCODE_IO_CANTSEEK ) mpDatStream->ResetError(); @@ -879,7 +879,7 @@ void ScImportAsciiDlg::SeparatorHdl(const weld::Widget* pCtrl) OUString aOldFldSeps( maFieldSeparators); sal_Unicode cOldSep = mcTextSep; mcTextSep = lcl_CharFromCombo( *mxCbTextSep, SCSTR_TEXTSEP ); - // Any separator changed may result in completely different lines due to + // Any separator change may result in completely different lines due to // embedded line breaks. if (cOldSep != mcTextSep) { diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 9494f53cf921..cd68095ef1ee 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -720,7 +720,7 @@ void ScTabPageSortOptions::ActivatePage( const SfxItemSet& rSet ) if (!pDlg) return; - //tdf#168905 If sort by row, then include affects boundary columns. + //tdf#168905 If sorting by row, the include option affects the boundary columns. if (aSortData.bByRow) { m_xBtnIncComments->set_label(aStrCommentsColLabel); diff --git a/sc/source/ui/inc/inputhdl.hxx b/sc/source/ui/inc/inputhdl.hxx index 4b551ed8a157..54d4d946c12f 100644 --- a/sc/source/ui/inc/inputhdl.hxx +++ b/sc/source/ui/inc/inputhdl.hxx @@ -87,7 +87,7 @@ private: sal_Unicode nCellPercentFormatDecSep; // 0:= no percent format, else which decimal separator - sal_uInt16 nAutoPar; // autom.parentheses than can be overwritten + sal_uInt16 nAutoPar; // automatic parentheses that can be overwritten ScAddress aCursorPos; ScInputMode eMode; diff --git a/sc/source/ui/inc/undo/UndoUngroupSparklines.hxx b/sc/source/ui/inc/undo/UndoUngroupSparklines.hxx index 7c836ac2d1ce..3c2a89208ee2 100644 --- a/sc/source/ui/inc/undo/UndoUngroupSparklines.hxx +++ b/sc/source/ui/inc/undo/UndoUngroupSparklines.hxx @@ -16,7 +16,7 @@ namespace sc { -/** Previous sparkline group data, which is restored at undo ungroupping */ +/** Previous sparkline group data, which is restored at undo ungrouping */ struct SparklineUndoData { SparklineUndoData(ScAddress const& rAddress, ScRangeList aDataRangeList, diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 7025a9340178..39e584d06b81 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -390,7 +390,7 @@ void ScContentTree::ActivateSelectedEntry() if (ScPostIt* pNote = pSrcDoc ? pSrcDoc->GetNote(aPos.Col(), aPos.Row(), aPos.Tab()) : nullptr) { bool bVisible = pNote->IsCaptionShown(); - // Effectivelly set the visibility of the comment + // Effectively set the visibility of the comment GetManualOrCurrent()->GetDocFunc().ShowNote(aPos, !bVisible); // Put the note in edit mode ScTabViewShell* pScTabViewShell = ScNavigatorDlg::GetTabViewShell(); diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index c52427b013ad..e729c5a53f30 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -121,7 +121,7 @@ bool detectThisFormat(SvStream& rStr, const sal_uInt16* pSearch) else if( nMuster & M_ALT(0) ) { // alternative Bytes sal_uInt8 nCntAlt = static_cast(nMuster); - bSync = false; // first unsynchron + bSync = false; // first unsynchronized while( nCntAlt > 0 ) { pSearch++;