From 37e1aec4ed4e42b5eed30989eafaa8650ef8e370 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Wed, 2 Sep 2026 21:46:11 +0200 Subject: [PATCH] Fix typos Change-Id: I121af263271437cf4013ef006d401a06ba3507b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210444 Tested-by: Jenkins Reviewed-by: Julien Nabet --- include/framework/titlehelper.hxx | 6 +++--- include/oox/drawingml/shape.hxx | 2 +- include/oox/export/chartexport.hxx | 6 +++--- include/oox/export/drawingml.hxx | 2 +- include/oox/vml/vmlshape.hxx | 2 +- include/registry/types.hxx | 10 +++++----- include/rtl/byteseq.h | 8 ++++---- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/include/framework/titlehelper.hxx b/include/framework/titlehelper.hxx index 4cc6dea43c72..8c0e6014e30c 100644 --- a/include/framework/titlehelper.hxx +++ b/include/framework/titlehelper.hxx @@ -72,7 +72,7 @@ class UNLESS_MERGELIBS_MORE(FWK_DLLPUBLIC) TitleHelper final : @param xOwner the new owner of this collection. @param xNumbers - provides the right string and number for an untitled component. + provides the right string and number for an untitled component. */ TitleHelper(css::uno::Reference< css::uno::XComponentContext > xContext, const css::uno::Reference< css::uno::XInterface >& xOwner, @@ -157,7 +157,7 @@ class UNLESS_MERGELIBS_MORE(FWK_DLLPUBLIC) TitleHelper final : /** provides parts of our own title and we listen there for changes too. */ css::uno::WeakReference< css::frame::XTitle > m_xSubTitle; - /** if it's set to sal_True the member m_sTitle has not to be changed internally. + /** if it's set to true the member m_sTitle must not be changed internally. It was set from outside and so outside code has to make sure it will be updated. */ @@ -169,7 +169,7 @@ class UNLESS_MERGELIBS_MORE(FWK_DLLPUBLIC) TitleHelper final : /** knows the leased number which must be used for untitled components. */ ::sal_Int32 m_nLeasedNumber; - /** contains all title change listener */ + /** contains all title change listeners */ comphelper::OInterfaceContainerHelper4 m_aTitleChangeListeners; }; diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index fc45771a9d14..eff54550c2d4 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -462,7 +462,7 @@ private: /// Aspect ratio for an in-diagram shape. double mfAspectRatio = 0; - /// Number of child shapes to be layouted vertically inside org chart in-diagram shape. + /// Number of child shapes to be laid out vertically inside org chart in-diagram shape. sal_Int32 mnVerticalShapesCount = 0; // Is this a connector shape? diff --git a/include/oox/export/chartexport.hxx b/include/oox/export/chartexport.hxx index 5c8a56f2bded..2e35946c8e0e 100644 --- a/include/oox/export/chartexport.hxx +++ b/include/oox/export/chartexport.hxx @@ -88,7 +88,7 @@ enum AxisType AXIS_VALUE // used for chartex }; -struct AxisIdPair{ +struct AxisIdPair { AxisType nAxisType; sal_Int32 nAxisId; sal_Int32 nCrossAx; @@ -163,7 +163,7 @@ private: std::shared_ptr mpURLTransformer; // members filled by InitRangeSegmentationProperties (retrieved from DataProvider) - bool mbHasCategoryLabels; //if the categories are only automatically generated this will be false + bool mbHasCategoryLabels; // if the categories are only automatically generated this will be false //css::uno::Reference< css::drawing::XShapes > mxAdditionalShapes; css::uno::Reference< css::chart2::data::XDataSequence > mxCategoriesValues; @@ -354,6 +354,6 @@ public: OOX_DLLPUBLIC OUString GetExternalDataPath() const; }; -} +} // namespace oox::drawingml /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/oox/export/drawingml.hxx b/include/oox/export/drawingml.hxx index b1f721b32ab0..c0903b2f8a6d 100644 --- a/include/oox/export/drawingml.hxx +++ b/include/oox/export/drawingml.hxx @@ -299,7 +299,7 @@ class DrawingML { private: - /// To specify where write eg. the images to (like 'ppt', or 'word' - according to the OPC). + /// To specify where to write eg. the images to (like 'ppt', or 'word' - according to the OPC). DocumentType meDocumentType; /// Parent exporter, used for text callback. DMLTextExport* mpTextExport; diff --git a/include/oox/vml/vmlshape.hxx b/include/oox/vml/vmlshape.hxx index c6ca01ba378d..23e8641f8834 100644 --- a/include/oox/vml/vmlshape.hxx +++ b/include/oox/vml/vmlshape.hxx @@ -107,7 +107,7 @@ struct ShapeTypeModel OUString maWrapDistanceRight; ///< Distance from the right side of the shape to the text that wraps around it. OUString maWrapDistanceTop; ///< Distance from the top of the shape to the text that wraps around it. OUString maWrapDistanceBottom; ///< Distance from the bottom of the shape to the text that wraps around it. - std::optional moCropBottom; ///< Specifies the how much to crop the image from the bottom up as a fraction of picture size. + std::optional moCropBottom; ///< Specifies how much to crop the image from the bottom up as a fraction of picture size. std::optional moCropLeft; ///< Specifies how much to crop the image from the left in as a fraction of picture size. std::optional moCropRight; ///< Specifies how much to crop the image from the right in as a fraction of picture size. std::optional moCropTop; ///< Specifies how much to crop the image from the top down as a fraction of picture size. diff --git a/include/registry/types.hxx b/include/registry/types.hxx index 3a56dfaebc0d..7c073b24b294 100644 --- a/include/registry/types.hxx +++ b/include/registry/types.hxx @@ -71,7 +71,7 @@ enum RTTypeClass RT_TYPE_SERVICE, /** specifies that the blob represents a singleton type (a named object) - which refers exactly one existing service. + which refers to exactly one existing service. */ RT_TYPE_SINGLETON, @@ -242,7 +242,7 @@ enum class RTMethodMode /// @deprecated ONEWAY_CONST, - /// indicated the synchronous mode of a method + /// indicates the synchronous mode of a method TWOWAY, /// @deprecated @@ -267,7 +267,7 @@ enum class RTMethodMode /** specifies the mode of a parameter. - There are three parameter modes which have impact of the handling of the + There are three parameter modes which have an impact on the handling of the parameter in the UNO bridges and the UNO code generation. */ enum RTParamMode @@ -281,7 +281,7 @@ enum RTParamMode /// indicates a pure out parameter which is used by reference RT_PARAM_OUT = 2, - /// indicates a in and out parameter which is used also by reference + /// indicates an in and out parameter which is used also by reference RT_PARAM_INOUT = 3, /** @@ -304,7 +304,7 @@ enum class RTReferenceType /// the reference type is unknown INVALID, - /** the service support the interface that means an implementation of this + /** the service supports the interface that means an implementation of this service must implement this interface. */ SUPPORTS, diff --git a/include/rtl/byteseq.h b/include/rtl/byteseq.h index 7bbeb9d67726..cede228b5e2c 100644 --- a/include/rtl/byteseq.h +++ b/include/rtl/byteseq.h @@ -68,7 +68,7 @@ SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_release( sal_Sequence *pSequence ) SAL_THROW_EXTERN_C(); -/** Constructs a bytes sequence with length nLength. All bytes are set to zero. +/** Constructs a byte sequence with length nLength. All bytes are set to zero. @param ppSequence inout sequence; on entry *ppSequence may be null, otherwise it is released; after the call, *ppSequence contains the newly constructed sequence @@ -78,7 +78,7 @@ SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_construct( sal_Sequence **ppSequence , sal_Int32 nLength ) SAL_THROW_EXTERN_C(); -/** Constructs a bytes sequence with length nLength. The data is not initialized. +/** Constructs a byte sequence with length nLength. The data is not initialized. @param ppSequence inout sequence; on entry *ppSequence may be null, otherwise it is released; after the call, *ppSequence contains the newly constructed sequence @@ -120,7 +120,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_byte_sequence_equals( /** Returns the data array pointer of the sequence. @return read-pointer to the data array of the sequence. If rtl_byte_sequence_reference2One() - has been called before, the pointer may be casted to a non const pointer and + has been called before, the pointer may be cast to a non const pointer and the sequence may be modified */ SAL_DLLPUBLIC const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray( @@ -222,7 +222,7 @@ public: /** Constructor: Creates a sequence from a C-Handle without acquiring the handle, thus taking over ownership. Eitherway the handle is released by the destructor. - This ctor is useful, when working with a c-interface (it safes a pair of + This ctor is useful, when working with a c-interface (it saves a pair of acquire and release call and is thus a performance optimization only). @param pSequence sequence handle to be taken over