From 33c1913a79520e53c1788a3fdcb8ab162cc9b145 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Tue, 1 Sep 2026 23:09:54 +0200 Subject: [PATCH] Fix typos Change-Id: I196a69c927aef82ff09f9b6381135b74e51c8111 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210370 Tested-by: Jenkins Reviewed-by: Julien Nabet --- xmloff/source/draw/ximpshap.cxx | 6 +++--- xmloff/source/draw/ximpshap.hxx | 2 +- xmloff/source/forms/elementexport.cxx | 2 +- xmloff/source/text/txtprmap.cxx | 2 +- xmloff/source/transform/OOo2Oasis.cxx | 4 ++-- xmloff/source/transform/Oasis2OOo.cxx | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index ea4b95a6d062..4f9125defdc3 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -135,7 +135,7 @@ static bool ImpIsEmptyURL( std::u16string_view rURL ) if( rURL.empty() ) return true; - // #i13140# Also compare against 'toplevel' URLs. which also + // #i13140# Also compare against 'toplevel' URLs, which also // result in empty filename strings. if( rURL == u"#./" ) return true; @@ -338,7 +338,7 @@ void SdXMLShapeContext::endFastElement(sal_Int32 ) mxLockable->addActionLock(); } - // delete addition newline + // delete additional newline mxCursor->gotoEnd( false ); mxCursor->goLeft( 1, true ); mxCursor->setString( u""_ustr ); @@ -581,7 +581,7 @@ void SdXMLShapeContext::SetTransformation() // now set transformation for this object - // maUsedTransformtion contains the mathematical correct matrix, which if + // maUsedTransformation contains the mathematically correct matrix, which if // applied to a unit square would generate the transformed shape. But the property // "Transformation" contains a matrix, which can be used in TRSetBaseGeometry // and would be created by TRGetBaseGeometry. And those use a mathematically wrong diff --git a/xmloff/source/draw/ximpshap.hxx b/xmloff/source/draw/ximpshap.hxx index 505b23bcaab5..f2ecc751567d 100644 --- a/xmloff/source/draw/ximpshap.hxx +++ b/xmloff/source/draw/ximpshap.hxx @@ -561,7 +561,7 @@ public: virtual bool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override; }; -// draw:-frame +// draw:frame class SdXMLFrameShapeContext : public SdXMLShapeContext, public MultiImageImportHelper { diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx index 9960c700973b..88ba47a4ccca 100644 --- a/xmloff/source/forms/elementexport.cxx +++ b/xmloff/source/forms/elementexport.cxx @@ -131,7 +131,7 @@ namespace xmloff void OElementExport::exportSubTags() { - // the properties which where not exported 'til now + // the properties which were not exported 'til now exportRemainingProperties(); // the script:events sub tags diff --git a/xmloff/source/text/txtprmap.cxx b/xmloff/source/text/txtprmap.cxx index 3a0594e94e1f..54ae2b93ce79 100644 --- a/xmloff/source/text/txtprmap.cxx +++ b/xmloff/source/text/txtprmap.cxx @@ -873,7 +873,7 @@ XMLPropertyMapEntry constexpr aXMLFramePropMap[] = // RES_LAYOUT_SPLIT // not required // RES_CHAIN - // not required (exported at text:text-box element) + // not required (exported as text:text-box element) // RES_LINENUMBER // not required // RES_FTN_AT_TXTEND diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx index 2a63bd0d008f..e548cc3ec2e9 100644 --- a/xmloff/source/transform/OOo2Oasis.cxx +++ b/xmloff/source/transform/OOo2Oasis.cxx @@ -1621,7 +1621,7 @@ void SAL_CALL OOo2OasisTransformer::setTargetDocument( if( !GetDocHandler().is() ) { // if initialize hasn't been called, then we have to call it now - // to get the sub component initialized. + // to get the sub-component initialized. Sequence aArgs( 0 ); Initialize( aArgs ); } @@ -1666,7 +1666,7 @@ void SAL_CALL OOo2OasisTransformer::startDocument() if( !GetDocHandler().is() ) { // if initialize hasn't been called, then we have to call it now - // to get the sub component initialized. + // to get the sub-component initialized. Sequence aArgs( 0 ); Initialize( aArgs ); } diff --git a/xmloff/source/transform/Oasis2OOo.cxx b/xmloff/source/transform/Oasis2OOo.cxx index 24f649b65d2d..50f147308a2a 100644 --- a/xmloff/source/transform/Oasis2OOo.cxx +++ b/xmloff/source/transform/Oasis2OOo.cxx @@ -226,9 +226,9 @@ XMLTransformerActionInit const aActionTable[] = ENTRY1( XML_NAMESPACE_TEXT, XML_H, XML_ETACTION_PROC_ATTRS, OASIS_PARA_ACTIONS ), ENTRY1( XML_NAMESPACE_TEXT, XML_P, XML_ETACTION_PROC_ATTRS, OASIS_PARA_ACTIONS ), - // process 's text:style-name attributes + // process 's text:style-name attributes // rename to or - // TODO: All list currently are renamed to + // TODO: All lists are currently renamed to ENTRY2QN( XML_NAMESPACE_TEXT, XML_LIST, XML_ETACTION_RENAME_ELEM_PROC_ATTRS, XML_NAMESPACE_TEXT, XML_ORDERED_LIST, OASIS_LIST_STYLE_REF_ACTIONS ),