From 1b41793844e0344d743fd074c40968e985acee70 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Mon, 24 Aug 2026 22:03:08 +0200 Subject: [PATCH] Fix typos Change-Id: I551ed9154c66f2b4d7622d19430352ad89c3d2f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209914 Tested-by: Julien Nabet Reviewed-by: Julien Nabet --- starmath/source/parse5.cxx | 22 +++++++++---------- starmath/source/rect.cxx | 2 +- svgio/source/svgreader/svgtools.cxx | 4 ++-- .../contact/viewobjectcontactofunocontrol.hxx | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/starmath/source/parse5.cxx b/starmath/source/parse5.cxx index 1a5908abab3e..a1b24c8d7bc1 100644 --- a/starmath/source/parse5.cxx +++ b/starmath/source/parse5.cxx @@ -1514,9 +1514,9 @@ std::unique_ptr SmParser5::DoSubSup(TG nActiveGroup, std::unique_ptr pNode(new SmSubSupNode(m_aCurToken)); pNode->SetSelection(m_aCurESelection); - //! Of course 'm_aCurToken' is just the first sub-/supscript token. + //! Of course 'm_aCurToken' is just the first sub-/superscript token. //! It should be of no further interest. The positions of the - //! sub-/supscripts will be identified by the corresponding subnodes + //! sub-/superscripts will be identified by the corresponding subnodes //! index in the 'aSubNodes' array (enum value from 'SmSubSup'). pNode->SetUseLimits(nActiveGroup == TG::Limit); @@ -1525,7 +1525,7 @@ std::unique_ptr SmParser5::DoSubSup(TG nActiveGroup, std::unique_ptr> aSubNodes(1 + SUBSUP_NUM_ENTRIES); aSubNodes[0] = std::move(xGivenNode); - // process all sub-/supscripts + // process all sub-/superscripts int nIndex = 0; while (TokenInGroup(nActiveGroup)) { @@ -1568,12 +1568,12 @@ std::unique_ptr SmParser5::DoSubSup(TG nActiveGroup, std::unique_ptr xSNode; if (eType == TFROM || eType == TTO) @@ -1603,7 +1603,7 @@ std::unique_ptr SmParser5::DoSubSupEvaluate(std::unique_ptr xGiv std::vector> aSubNodes(1 + SUBSUP_NUM_ENTRIES); aSubNodes[0] = std::move(xGivenNode); - // process all sub-/supscripts + // process all sub-/superscripts int nIndex = 0; while (TokenInGroup(TG::Limit)) { @@ -1631,9 +1631,9 @@ std::unique_ptr SmParser5::DoSubSupEvaluate(std::unique_ptr xGiv xENode = DoError(SmParseError::DoubleSubsupscript); // this also skips current token. } else - NextToken(); // skip sub-/supscript token + NextToken(); // skip sub-/superscript token - // get sub-/supscript node + // get sub-/superscript node std::unique_ptr xSNode; xSNode = DoTerm(true); @@ -1653,7 +1653,7 @@ std::unique_ptr SmParser5::DoOpSubSup() xNode->SetSelection(m_aCurESelection); // skip operator token NextToken(); - // get sub- supscripts if any + // get sub- superscripts if any if (m_aCurToken.nGroup == TG::Power) return DoSubSup(TG::Power, std::move(xNode)); return xNode; @@ -1663,7 +1663,7 @@ std::unique_ptr SmParser5::DoPower() { DepthProtect aDepthGuard(m_nParseDepth); - // get body for sub- supscripts on top of stack + // get body for sub- superscripts on top of stack std::unique_ptr xNode(DoTerm(false)); if (m_aCurToken.nGroup == TG::Power) diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 4902ca63792b..7f802d190311 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -522,7 +522,7 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode, bool bKeepVerAlignParams) // as 'ExtendBy' but keeps original values for AlignT, -M and -B and // baseline. - // (this is used in 'SmSupSubNode' where the sub-/supscripts shouldn't + // (this is used in 'SmSupSubNode' where the sub-/superscripts shouldn't // be allowed to modify these values.) { tools::Long nOldAlignT = GetAlignT(), diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx index f6078bf49010..99f7c857caee 100644 --- a/svgio/source/svgreader/svgtools.cxx +++ b/svgio/source/svgreader/svgtools.cxx @@ -200,7 +200,7 @@ namespace svgio::svgreader (bNoSWidth ? 1.0 : 1.0 / fSWidth) * rTarget.getWidth(), (bNoSHeight ? 1.0 : 1.0 / fSHeight) * rTarget.getHeight()); - // transform from unit rage to target range + // transform from unit range to target range aRetval.translate(rTarget.getMinX(), rTarget.getMinY()); return aRetval; @@ -901,7 +901,7 @@ namespace svgio::svgreader // caution: String is evaluated from left to right, but matrix multiplication // in SVG is right to left, so put the new transformation before the current - // one by multiplicating from the right side + // one by multiplying from the right side aMatrix = aMatrix * aNew; } } diff --git a/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx b/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx index cfaf549129f2..fd49c43619d9 100644 --- a/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx +++ b/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx @@ -66,14 +66,14 @@ namespace sdr::contact { const SdrUnoObj& _rUnoObject ); - /// ensures that the control belonging to this instances has a given visibility + /// ensures that the control belonging to this instance has a given visibility void ensureControlVisibility( bool _bVisible ) const; /** sets the design/alive mode of the control */ void setControlDesignMode( bool _bDesignMode ) const; - /** callback from impl class to react on changes of properties form the XControlModel + /** callback from impl class to react on changes of properties from the XControlModel */ void propertyChange();