From 3bc01f0c998c855dc16ca5aa620290a3cefc5d79 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Sat, 3 Oct 2026 00:13:14 +0200 Subject: [PATCH] Fix typos Change-Id: I3fb0e9e9d2b16195bf9445d01da8b5936c148544 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211770 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sfx2/source/doc/objstor.cxx | 2 +- starmath/inc/node.hxx | 10 +++++----- starmath/source/ooxmlexport.cxx | 2 +- svx/source/sidebar/line/LineWidthPopup.cxx | 2 +- sw/inc/crsrsh.hxx | 2 +- sw/inc/doc.hxx | 2 +- sw/inc/fesh.hxx | 2 +- sw/qa/core/doc/doc.cxx | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index e6e61e5753c0..c3b988a14177 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2875,7 +2875,7 @@ bool SfxObjectShell::DoSave_Impl( const SfxItemSet* pArgs ) pSet->ClearItem( SID_VERSION ); pSet->ClearItem( SID_DOC_BASEURL ); - // copy the version comment and major items for the checkin only + // copy the version comment and major items for the check-in only if ( pRetrMedium->IsInCheckIn( ) ) { const SfxPoolItem* pMajor = pArgs->GetItem( SID_DOCINFO_MAJOR ); diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index b7e91bbed42f..90b4bd933ee3 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -463,10 +463,10 @@ private: }; -/** Abstract baseclass for all composite node +/** Abstract base class for all composite nodes * - * Subclasses of this class can have subnodes. Nodes that doesn't derivate from - * this class does not have subnodes. + * Subclasses of this class can have subnodes. Nodes that don't derive from + * this class do not have subnodes. */ class SmStructureNode : public SmNode { @@ -589,9 +589,9 @@ private: }; -/** Abstract base class for all visible node +/** Abstract base class for all visible nodes * - * Nodes that doesn't derivate from this class doesn't draw anything, but their + * Nodes that don't derive from this class don't draw anything, but their * children. */ class SmVisibleNode : public SmNode diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx index 06a79fd190f1..bbb352c04958 100644 --- a/starmath/source/ooxmlexport.cxx +++ b/starmath/source/ooxmlexport.cxx @@ -85,7 +85,7 @@ void SmOoxmlExport::ConvertFromStarMath( const ::sax_fastparser::FSHelperPtr& se // part of the ooxml math stuff. // The w prefix is bound in a DOCX and nowhere else. A formula in a presentation or a -// spreadsheet goes out inside a slide or a sheet, which never declare it, so run +// spreadsheet goes out inside a slide or a sheet, which never declares it, so run // properties there would leave the prefix unbound. bool SmOoxmlExport::WritesRunProperties() const { diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx index 4a0493880ffb..d9930790cfc5 100644 --- a/svx/source/sidebar/line/LineWidthPopup.cxx +++ b/svx/source/sidebar/line/LineWidthPopup.cxx @@ -117,7 +117,7 @@ IMPL_LINK_NOARG(LineWidthPopup, VSSelectHdl, ValueSet*, void) } else { - m_xVSWidth->SetNoSelection(); //add , set no selection and keep the last select item + m_xVSWidth->SetNoSelection(); // add: set no selection and keep the last selected item m_xVSWidth->SetFormat(); m_xVSWidth->Invalidate(); } diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 288bd88f202c..82094b0988dc 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -136,7 +136,7 @@ namespace sw { bool ReplaceImpl(SwPaM & rCursor, OUString const& rReplacement, bool const bRegExp, SwDoc & rDoc, SwRootFrame const*const pLayout); -/// Helperfunction to resolve backward references in regular expressions +/// Helper function to resolve backward references in regular expressions std::optional ReplaceBackReferences(const i18nutil::SearchOptions2& rSearchOpt, SwPaM* pPam, SwRootFrame const* pLayout ); diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 2a212d84788d..60ab9535da64 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1595,7 +1595,7 @@ public: const SfxItemSet* pSet ); void SetFormatItemByAutoFormat( const SwPaM& rPam, const SfxItemSet& ); - // Only for SW-textbloxks! Does not pay any attention to layout! + // Only for SW text blocks! Does not pay any attention to layout! void ClearDoc(); // Deletes all content! // Query /set data for PagePreview. diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx index 7df474767099..9332023fd1b4 100644 --- a/sw/inc/fesh.hxx +++ b/sw/inc/fesh.hxx @@ -299,7 +299,7 @@ public: /// Same as IsObjSelectable(), but return the object as well. SdrObject* GetObjAt(const Point& rPt); bool IsInsideSelectedObj( const Point& rPt ); ///< returns enum values - /** Returns true if it is background object, and is covered by text at the given point. */ + /** Returns true if it is a background object, and is covered by text at the given point. */ bool IsTextOverBgObjectAt(const Point& rPt, const SdrObject* pObj); /** Test if there is a draw object at that position and if it should be selected. The 'should' is aimed at Writer text fly frames which may be in front of diff --git a/sw/qa/core/doc/doc.cxx b/sw/qa/core/doc/doc.cxx index 47b041342a77..9224d3114bf7 100644 --- a/sw/qa/core/doc/doc.cxx +++ b/sw/qa/core/doc/doc.cxx @@ -264,7 +264,7 @@ CPPUNIT_TEST_FIXTURE(SwCoreDocTest, testShapeZOrderOverTextBox) // Without the accompanying fix in place, this test would have failed with: // - Expected: 1 // - Actual : 2 - // The shape over the text box was put one place too high and ended up over the shape that5 + // The shape over the text box was put one place too high and ended up over the shape that // should have covered it: the import added a place for the text frame of the text box, // which the z-order it read back does not count. CPPUNIT_ASSERT_EQUAL(static_cast(0), nBottom);