From 335726898dd5f4eb4ed576ae9f0379210247dc99 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Fri, 21 Aug 2026 21:02:56 +0200 Subject: [PATCH] Fix typos Change-Id: Idab619de99649c2fb0a1920844cb07e5ede9691c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209474 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- basegfx/source/polygon/b2dpolygon.cxx | 4 ++-- basegfx/source/polygon/b2dpolypolygon.cxx | 2 +- basegfx/test/B2DPolyRangeTest.cxx | 2 +- basegfx/test/B2DPolygonTest.cxx | 2 +- basegfx/test/basegfx3d.cxx | 14 +++++++------- basegfx/test/basegfxtools.cxx | 2 +- basic/source/comp/sbcomp.cxx | 2 +- basic/source/sbx/sbxstr.cxx | 2 +- bridges/source/cpp_uno/gcc3_linux_hppa/uno2cpp.cxx | 2 +- sc/qa/uitest/calc_tests/CellDropDownItems.py | 6 +++--- sc/source/core/inc/adiasync.hxx | 2 +- sc/source/core/tool/interpr1.cxx | 8 ++++---- sc/source/filter/html/htmlpars.cxx | 2 +- sc/source/filter/inc/xichart.hxx | 2 +- sc/source/ui/dbgui/sortdlg.cxx | 2 +- sc/source/ui/view/gridwin.cxx | 2 +- sd/qa/unit/export-tests.cxx | 4 ++-- sd/source/ui/unoidl/unomodule.cxx | 2 +- sdext/qa/unit/pdfimport.cxx | 2 +- sfx2/source/appl/linksrc.cxx | 2 +- sfx2/source/doc/doctemplates.cxx | 4 ++-- .../source/engine/opengl/TransitionerImpl.cxx | 4 ++-- sw/qa/extras/unowriter/unowriter.cxx | 2 +- 23 files changed, 38 insertions(+), 38 deletions(-) diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx index 745698f7b8c0..efbe42d47cd4 100644 --- a/basegfx/source/polygon/b2dpolygon.cxx +++ b/basegfx/source/polygon/b2dpolygon.cxx @@ -538,7 +538,7 @@ public: // inside the current range without control points. Expand current range by // subdividing the bezier segment. // Ideal here is a subdivision at the extreme values, so use - // getAllExtremumPositions to get all extremas in one run + // getAllExtremumPositions to get all extrema in one run std::vector< double > aExtremas; aExtremas.reserve(4); @@ -576,7 +576,7 @@ private: // count of members. CoordinateDataArray2D maPoints; - // The control point vectors. This vectors are created on demand + // The control point vectors. These vectors are created on demand // and may be zero. std::optional< ControlVectorArray2D > moControlVector; diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx index 35a801684a86..905c2d2dc6fd 100644 --- a/basegfx/source/polygon/b2dpolypolygon.cxx +++ b/basegfx/source/polygon/b2dpolypolygon.cxx @@ -353,7 +353,7 @@ public: bool B2DPolyPolygon::isClosed() const { - // PolyPOlygon is closed when all contained Polygons are closed or + // PolyPolygon is closed when all contained Polygons are closed or // no Polygon exists. for(sal_uInt32 a(0); a < count(); a++) { diff --git a/basegfx/test/B2DPolyRangeTest.cxx b/basegfx/test/B2DPolyRangeTest.cxx index 174a56a898d1..b3cab06613bf 100644 --- a/basegfx/test/B2DPolyRangeTest.cxx +++ b/basegfx/test/B2DPolyRangeTest.cxx @@ -53,7 +53,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(b2dpolyrange); CPPUNIT_TEST(check); diff --git a/basegfx/test/B2DPolygonTest.cxx b/basegfx/test/B2DPolygonTest.cxx index eadbdca93699..db9b5812edcf 100644 --- a/basegfx/test/B2DPolygonTest.cxx +++ b/basegfx/test/B2DPolygonTest.cxx @@ -97,7 +97,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(b2dpolygon); CPPUNIT_TEST(testCubicBezier); diff --git a/basegfx/test/basegfx3d.cxx b/basegfx/test/basegfx3d.cxx index b03560d6588e..03ef7f631099 100644 --- a/basegfx/test/basegfx3d.cxx +++ b/basegfx/test/basegfx3d.cxx @@ -34,7 +34,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(b3dhommatrix); CPPUNIT_TEST(EmptyMethod); @@ -53,7 +53,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(b3dpoint); CPPUNIT_TEST(EmptyMethod); @@ -68,7 +68,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(b3drange); CPPUNIT_TEST(EmptyMethod); @@ -87,7 +87,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(b3dtuple); CPPUNIT_TEST(EmptyMethod); @@ -102,7 +102,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(b3dvector); CPPUNIT_TEST(EmptyMethod); @@ -116,8 +116,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dtuple); CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector); } // namespace basegfx3d -// this macro creates an empty function, which will called by the RegisterAllFunctions() -// to let the user the possibility to also register some functions by hand. +// this macro creates an empty function, which will be called by the RegisterAllFunctions() +// to allow the user the possibility to also register some functions by hand. // NOADDITIONAL; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basegfx/test/basegfxtools.cxx b/basegfx/test/basegfxtools.cxx index 9c6075919333..ae255d05263f 100644 --- a/basegfx/test/basegfxtools.cxx +++ b/basegfx/test/basegfxtools.cxx @@ -76,7 +76,7 @@ public: // Change the following lines only, if you add, remove or rename // member functions of the current class, - // because these macros are need by auto register mechanism. + // because these macros are needed by auto register mechanism. CPPUNIT_TEST_SUITE(KeyStopLerpTest); CPPUNIT_TEST(test); diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx index 1a6a52b22850..5a2fd10396fe 100644 --- a/basic/source/comp/sbcomp.cxx +++ b/basic/source/comp/sbcomp.cxx @@ -60,7 +60,7 @@ bool SbModule::Compile() { if( dynamic_cast( this) == nullptr ) pBasic->ClearAllModuleVars(); - RemoveVars(); // remove 'this' Modules variables + RemoveVars(); // remove 'this' Module's variables // clear all method statics for (sal_uInt32 i = 0; i < pMethods->Count(); i++) { diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx index 4e447bb600bb..2f661fdcb499 100644 --- a/basic/source/sbx/sbxstr.cxx +++ b/basic/source/sbx/sbxstr.cxx @@ -26,7 +26,7 @@ #include #include -// The conversion of an item onto String was handled via the Put-Methods +// The conversion of an item to a String was handled via the Put-Methods // of the several data types to avoid duplicated code. OUString ImpGetString( const SbxValues* p ) diff --git a/bridges/source/cpp_uno/gcc3_linux_hppa/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_hppa/uno2cpp.cxx index 43e9aabac8b1..958ae4063e57 100644 --- a/bridges/source/cpp_uno/gcc3_linux_hppa/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_hppa/uno2cpp.cxx @@ -220,7 +220,7 @@ static void cpp_call( static_assert(sizeof(void *) == sizeof(sal_Int32), "### unexpected size!"); // args void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams ); - // indices of values this have to be converted (interface conversion cpp<=>uno) + // indices of values that have to be converted (interface conversion cpp<=>uno) sal_Int32 * pTempIndices = (sal_Int32 *)(pCppArgs + nParams); // type descriptions for reconversions typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams)); diff --git a/sc/qa/uitest/calc_tests/CellDropDownItems.py b/sc/qa/uitest/calc_tests/CellDropDownItems.py index 86fceeca2f9a..23de8697a16b 100644 --- a/sc/qa/uitest/calc_tests/CellDropDownItems.py +++ b/sc/qa/uitest/calc_tests/CellDropDownItems.py @@ -44,7 +44,7 @@ class CellDropDownItems(UITestCase): #Close the dialog - #Launch the Select Menu to view the list ans select first item in the list + #Launch the Select Menu to view the list and select first item in the list gridwin = xCalcDoc.getChild("grid_window") gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"})) @@ -56,7 +56,7 @@ class CellDropDownItems(UITestCase): xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) ) self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item1") - #Launch the Select Menu to view the list ans select Third item in the list + #Launch the Select Menu to view the list and select Third item in the list gridwin = xCalcDoc.getChild("grid_window") gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"})) @@ -68,7 +68,7 @@ class CellDropDownItems(UITestCase): xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) ) self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item3") - #Launch the Select Menu to view the list ans select Fifth item in the list + #Launch the Select Menu to view the list and select Fifth item in the list gridwin = xCalcDoc.getChild("grid_window") gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"})) diff --git a/sc/source/core/inc/adiasync.hxx b/sc/source/core/inc/adiasync.hxx index b693f12a28b8..b1a647b7eddb 100644 --- a/sc/source/core/inc/adiasync.hxx +++ b/sc/source/core/inc/adiasync.hxx @@ -42,7 +42,7 @@ private: }; std::unique_ptr pDocs; // List of using documents LegacyFuncData* mpFuncData; // Pointer to data in collection - sal_uLong nHandle; // is casted from double to sal_uLong + sal_uLong nHandle; // is cast from double to sal_uLong ParamType meType; // result of type PTR_DOUBLE or PTR_STRING bool bValid; // is value valid? diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 61b0be04ba6e..92beba07eb82 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -9349,7 +9349,7 @@ void ScInterpreter::ScExpand() if (!MustHaveParamCount(nParamCount, 2, 4)) return; - // 4rd argument optional - pad_with + // 4th argument optional - pad_with std::optional bDouble; double fNumber(0.0); svl::SharedString aString; @@ -9599,7 +9599,7 @@ void ScInterpreter::ScTextBeforeOrAfter(bool bBefore) Pop(); } - // 4rd argument optional - match_mode + // 4th argument optional - match_mode bool bMatchMode = false; if (nParamCount >= 4) { @@ -9611,7 +9611,7 @@ void ScInterpreter::ScTextBeforeOrAfter(bool bBefore) Pop(); } - // 3nd argument optional - instance_num + // 3rd argument optional - instance_num sal_Int32 nInstanceNum(1); if (nParamCount >= 3) { @@ -9823,7 +9823,7 @@ void ScInterpreter::ScTextSplit() Pop(); } - // 4rd argument optional - ignore_empty + // 4th argument optional - ignore_empty bool bIgnoreEmpty = false; if (nParamCount >= 4) { diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 570e952c8253..3075fbb18218 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -1379,7 +1379,7 @@ void ScHTMLLayoutParser::TableOff( const HtmlImportInfo* pInfo ) if ( nRowsPerRow2 > 1 ) { // Inner if ( !pTab2 ) - { // nRowsPerRow2 could be've been incremented + { // nRowsPerRow2 could have been incremented pTab2 = new InnerMap; (*pTables)[ nTable ].reset(pTab2); } diff --git a/sc/source/filter/inc/xichart.hxx b/sc/source/filter/inc/xichart.hxx index a4edbba1881d..3bb6844355ed 100644 --- a/sc/source/filter/inc/xichart.hxx +++ b/sc/source/filter/inc/xichart.hxx @@ -1312,7 +1312,7 @@ public: XclImpChTypeGroupRef GetTypeGroup( sal_uInt16 nGroupIdx ) const; /** Returns the specified default text. */ const XclImpChText* GetDefaultText( XclChTextType eTextType ) const; - /** Returns true, if the plot area has benn moved and/or resized manually. */ + /** Returns true, if the plot area has been moved and/or resized manually. */ bool IsManualPlotArea() const; /** Returns the number of units on the progress bar needed for the chart. */ static std::size_t GetProgressSize() { return 2 * EXC_CHART_PROGRESS_SIZE; } diff --git a/sc/source/ui/dbgui/sortdlg.cxx b/sc/source/ui/dbgui/sortdlg.cxx index b1b020f57b5b..defb493f35f4 100644 --- a/sc/source/ui/dbgui/sortdlg.cxx +++ b/sc/source/ui/dbgui/sortdlg.cxx @@ -44,7 +44,7 @@ ScSortDlg::ScSortDlg(weld::Window* pParent, const SfxItemSet* pArgSet) ScSortDlg::~ScSortDlg() { - // tdf#153852 - Make of sort dialog resizable (and remember size) + // tdf#153852 - Make the sort dialog resizable (and remember size) SvtViewOptions aDlgOpt(EViewType::Dialog, u"SortDialog"_ustr); aDlgOpt.SetWindowState(m_xDialog->get_window_state(vcl::WindowDataMask::PosSize)); } diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index f83a8df0045f..dee484a8af76 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -4071,7 +4071,7 @@ void ScGridWindow::DropScroll( const Point& rMousePos ) static bool lcl_TestScenarioRedliningDrop( const ScDocument* pDoc, const ScRange& aDragRange) { - // Test, if a scenario is affected by a drop when turing on RedLining, + // Test, if a scenario is affected by a drop when turning on RedLining, bool bReturn = false; SCTAB nTab = aDragRange.aStart.Tab(); SCTAB nTabCount = pDoc->GetTableCount(); diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx index e662c16722ae..5d6c0ad5df1b 100644 --- a/sd/qa/unit/export-tests.cxx +++ b/sd/qa/unit/export-tests.cxx @@ -1348,7 +1348,7 @@ CPPUNIT_TEST_FIXTURE(SdExportTest, testExplodedPdfPatternStroke) xmlDocUniquePtr pXmlDoc = parseExportedFile(); - // ensure the stroke color is this redish color, and not gray which is what it + // ensure the stroke color is this reddish color, and not gray which is what it // defaults to if the stroke pattern isn't taken into account. assertXPath(pXmlDoc, "/office:document/office:automatic-styles/style:style[@style:name='gr1']/" "style:graphic-properties[@svg:stroke-color='#ed1b2d']"); @@ -1372,7 +1372,7 @@ CPPUNIT_TEST_FIXTURE(SdExportTest, testExplodedPdfPatternFill) xmlDocUniquePtr pXmlDoc = parseExportedFile(); - // ensure the stroke color is this redish color, and not gray which is what it + // ensure the stroke color is this reddish color, and not gray which is what it // defaults to if the stroke pattern isn't taken into account. assertXPath(pXmlDoc, "/office:document/office:automatic-styles/style:style[@style:name='gr1']/" "style:graphic-properties[@style:repeat='repeat' and " diff --git a/sd/source/ui/unoidl/unomodule.cxx b/sd/source/ui/unoidl/unomodule.cxx index 743ccd62b097..5d17aed58ad9 100644 --- a/sd/source/ui/unoidl/unomodule.cxx +++ b/sd/source/ui/unoidl/unomodule.cxx @@ -33,7 +33,7 @@ using namespace ::com::sun::star; // XNotifyingDispatch void SAL_CALL SdUnoModule::dispatchWithNotification( const util::URL& aURL, const uno::Sequence< beans::PropertyValue >& aArgs, const uno::Reference< frame::XDispatchResultListener >& xListener ) { - // there is no guarantee, that we are holded alive during this method! + // there is no guarantee, that we are held alive during this method! // May the outside dispatch container will be updated by a CONTEXT_CHANGED // asynchronous ... uno::Reference< uno::XInterface > xThis(static_cast< frame::XNotifyingDispatch* >(this)); diff --git a/sdext/qa/unit/pdfimport.cxx b/sdext/qa/unit/pdfimport.cxx index d805aaa616cc..26f948ae3f58 100644 --- a/sdext/qa/unit/pdfimport.cxx +++ b/sdext/qa/unit/pdfimport.cxx @@ -715,7 +715,7 @@ namespace assertXPath(pXmlDoc, xpath, "font-family", u"SimSun"); assertXPath(pXmlDoc, xpath, "font-weight", u"normal"); // FIXME and remove the below comment: - // the chinese chars are shown in pdf as faux italic (fake italic). It is currencly imported wrongly as normal font style. + // the chinese chars are shown in pdf as faux italic (fake italic). It is currently imported wrongly as normal font style. // See tdf#78427 for how the faux bold problem was handled. Faux italic may be handled using the transformation pattern. // assertXPath(pXmlDoc, xpath, "font-style", "italic"); diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index 3a1af228f6a4..9b8ccc3c7b6d 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -387,7 +387,7 @@ bool SvLinkSource::HasDataLinks() const return bRet; } -// sal_True => waitinmg for data +// sal_True => waiting for data bool SvLinkSource::IsPending() const { return false; diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index ae06d2a2cbb3..7e3b3c3d636d 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -954,7 +954,7 @@ bool SfxDocTplService::setProperty( Content& rContent, } } - // To ensure a reloctable office installation, the path to the + // To ensure a relocatable office installation, the path to the // office installation directory must never be stored directly. if ( SfxURLRelocator_Impl::propertyCanContainOfficeDir( rPropName ) ) { @@ -1013,7 +1013,7 @@ bool SfxDocTplService::getProperty(Content& rContent, const OUString& rPropName, rPropValue = rContent.getPropertyValue( rPropName ); - // To ensure a reloctable office installation, the path to the + // To ensure a relocatable office installation, the path to the // office installation directory must never be stored directly. if ( SfxURLRelocator_Impl::propertyCanContainOfficeDir( rPropName ) ) { diff --git a/slideshow/source/engine/opengl/TransitionerImpl.cxx b/slideshow/source/engine/opengl/TransitionerImpl.cxx index c580e3c34d5d..0d45749598e5 100644 --- a/slideshow/source/engine/opengl/TransitionerImpl.cxx +++ b/slideshow/source/engine/opengl/TransitionerImpl.cxx @@ -829,7 +829,7 @@ void OGLTransitionerImpl::impl_createTexture( if (epoxy_has_gl_extension("GL_EXT_texture_filter_anisotropic")) { - //anistropic filtering (to make texturing not suck when looking at polygons from oblique angles) + //anisotropic filtering (to make texturing not suck when looking at polygons from oblique angles) GLfloat largest_supported_anisotropy; glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &largest_supported_anisotropy); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, largest_supported_anisotropy); @@ -844,7 +844,7 @@ void OGLTransitionerImpl::impl_createTexture( if (epoxy_has_gl_extension("GL_EXT_texture_filter_anisotropic")) { - //anistropic filtering (to make texturing not suck when looking at polygons from oblique angles) + //anisotropic filtering (to make texturing not suck when looking at polygons from oblique angles) GLfloat largest_supported_anisotropy; glGetFloatv( GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &largest_supported_anisotropy ); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, largest_supported_anisotropy ); diff --git a/sw/qa/extras/unowriter/unowriter.cxx b/sw/qa/extras/unowriter/unowriter.cxx index b98f27df3339..f2a0aec3efc2 100644 --- a/sw/qa/extras/unowriter/unowriter.cxx +++ b/sw/qa/extras/unowriter/unowriter.cxx @@ -880,7 +880,7 @@ CPPUNIT_TEST_FIXTURE(SwUnoWriter, testTdf62603) // Insert 4th string 'who' with default 12 pt font height xCursorProps->setPropertyValue("CharHeight", uno::Any(float(12.0))); xText->insertString(xCursor, "who", false); - xCursor->goLeft(3, true); // selects 4rd string + xCursor->goLeft(3, true); // selects 4th string CPPUNIT_ASSERT_EQUAL(float(12.0), getProperty(xCursorProps, "CharHeight")); xCursor->collapseToEnd();