Fix typos in code + comments

Change-Id: I66a422f3519dceed4f5e253a2895eb2e0d943662
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210574
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
This commit is contained in:
Andrea Gelmini
2026-09-11 02:53:38 +02:00
parent 02ca891a8e
commit 4ee0d493d0
20 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -1749,7 +1749,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
Reference< XFrame > xTargetFrame( lcl_findStartModuleFrame( xContext ) ); Reference< XFrame > xTargetFrame( lcl_findStartModuleFrame( xContext ) );
if ( !xTargetFrame.is() ) if ( !xTargetFrame.is() )
xTargetFrame = SfxFrame::CreateBlankFrame(); xTargetFrame = SfxFrame::CreateBlankFrame();
ENSURE_OR_THROW( xTargetFrame.is(), "could not obtain a frameto load the Basic IDE into!" ); ENSURE_OR_THROW( xTargetFrame.is(), "could not obtain a frame to load the Basic IDE into!" );
xLoader->load( aLoadArgs.getPropertyValues(), xTargetFrame ); xLoader->load( aLoadArgs.getPropertyValues(), xTargetFrame );
} }
+1 -1
View File
@@ -616,7 +616,7 @@ bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink )
LinkManager* pLinkMgr = pLink->GetLinkManager(); LinkManager* pLinkMgr = pLink->GetLinkManager();
if (pLinkMgr && sfx2::LinkManager::GetDisplayNames(pLink, nullptr, &sTopic, &sItem) && !sTopic.isEmpty()) if (pLinkMgr && sfx2::LinkManager::GetDisplayNames(pLink, nullptr, &sTopic, &sItem) && !sTopic.isEmpty())
{ {
// first only loop over the DocumentShells the shells and find those // first only loop over the DocumentShells and find those
// with the name: // with the name:
CharClass aCC( LanguageTag( LANGUAGE_SYSTEM) ); CharClass aCC( LanguageTag( LANGUAGE_SYSTEM) );
+1 -1
View File
@@ -3025,6 +3025,6 @@ OUString DecodeSpaces_Impl( const OUString& rSource )
return sRet; return sRet;
} }
} // end of namespace sfx2 } // namespace sfx2
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+2 -2
View File
@@ -13,7 +13,7 @@ import xml.etree.ElementTree as ET
# foo_component_getFactory functions are split into groups, so that you could # foo_component_getFactory functions are split into groups, so that you could
# choose e.g. 'core' and 'writer' functionality and through factory_map, # choose e.g. 'core' and 'writer' functionality and through factory_map,
# relevant function sections will be referenced in lo_get_factory_map(). # relevant function sections will be referenced in lo_get_factory_map().
# That prevents garbage collector to ignore them as unused. # That prevents the garbage collector from ignoring them as unused.
# The same groups are used for constructor based implementations # The same groups are used for constructor based implementations
# referenced in lo_get_constructor_map(). # referenced in lo_get_constructor_map().
@@ -445,7 +445,7 @@ core_constructor_list = [
# ucb/source/ucp/ucphier1.component # ucb/source/ucp/ucphier1.component
"ucb_HierarchyContentProvider_get_implementation", "ucb_HierarchyContentProvider_get_implementation",
"ucb_HierarchyDataSource_get_implementation", "ucb_HierarchyDataSource_get_implementation",
# ucb/source/ucp/package/ucppkg1 # ucb/source/ucp/package/ucppkg1.component
"ucb_package_ContentProvider_get_implementation", "ucb_package_ContentProvider_get_implementation",
# unotools/util/utl.component # unotools/util/utl.component
"unotools_ServiceDocument_get_implementation", "unotools_ServiceDocument_get_implementation",
+1 -1
View File
@@ -65,7 +65,7 @@ public:
virtual void virtual void
SetViewSettings(const css::uno::Sequence<css::beans::PropertyValue>& aViewProps) override; SetViewSettings(const css::uno::Sequence<css::beans::PropertyValue>& aViewProps) override;
/** Imports configurations settings formula /** Imports configuration settings formula
*/ */
virtual void SetConfigurationSettings( virtual void SetConfigurationSettings(
const css::uno::Sequence<css::beans::PropertyValue>& aViewProps) override; const css::uno::Sequence<css::beans::PropertyValue>& aViewProps) override;
+1 -1
View File
@@ -431,7 +431,7 @@ OUString SAL_CALL SmGraphicAccessible::getTextRange(
sal_Int32 nEndIndex ) sal_Int32 nEndIndex )
{ {
//!! nEndIndex may be the string length per definition of the interface !! //!! nEndIndex may be the string length per definition of the interface !!
//!! text should be copied exclusive that end index though. And arguments //!! text should be copied exclusive of that end index though. And arguments
//!! may be switched. //!! may be switched.
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
+3 -3
View File
@@ -173,7 +173,7 @@ void SmMLImportContext::inheritStyle()
break; break;
} }
// Parent inheritation // Parent inheritance
// Mathcolor, mathsize, dir and displaystyle are inherited from parent // Mathcolor, mathsize, dir and displaystyle are inherited from parent
SmMlElement* pParent = *m_pParent; SmMlElement* pParent = *m_pParent;
m_pElement->setAttribute(pParent->getAttribute(SmMlAttributeValueType::MlMathcolor)); m_pElement->setAttribute(pParent->getAttribute(SmMlAttributeValueType::MlMathcolor));
@@ -212,7 +212,7 @@ void SmMLImportContext::inheritStyle()
if (m_pElement->getMlElementType() == SmMlElementType::MlMo) if (m_pElement->getMlElementType() == SmMlElementType::MlMo)
{ {
// Set form based in position // Set form based on position
SmMlAttribute aAttribute(SmMlAttributeValueType::MlForm); SmMlAttribute aAttribute(SmMlAttributeValueType::MlForm);
SmMlForm aForm; SmMlForm aForm;
if (m_pElement->getSubElementId() == 0) if (m_pElement->getSubElementId() == 0)
@@ -236,7 +236,7 @@ void SmMLImportContext::inheritStyleEnd()
{ {
if ((*m_pParent)->getSubElementsCount() == m_pElement->getSubElementId()) if ((*m_pParent)->getSubElementsCount() == m_pElement->getSubElementId())
{ {
// Set form based in position // Set form based on position
SmMlAttribute aAttribute(SmMlAttributeValueType::MlForm); SmMlAttribute aAttribute(SmMlAttributeValueType::MlForm);
SmMlForm aForm = { SmMlAttributeValueForm::MlPosfix }; SmMlForm aForm = { SmMlAttributeValueForm::MlPosfix };
aAttribute.setMlForm(&aForm); aAttribute.setMlForm(&aForm);
@@ -1004,7 +1004,7 @@ void OServiceManager::insert( const Any & Element )
if( Element.getValueTypeClass() != TypeClass_INTERFACE ) if( Element.getValueTypeClass() != TypeClass_INTERFACE )
{ {
throw IllegalArgumentException( throw IllegalArgumentException(
"exception interface, got " + Element.getValueTypeName(), "expected interface, got " + Element.getValueTypeName(),
Reference< XInterface >(), 0 ); Reference< XInterface >(), 0 );
} }
Reference<XInterface > xEle( Element, UNO_QUERY_THROW ); Reference<XInterface > xEle( Element, UNO_QUERY_THROW );
@@ -1279,7 +1279,7 @@ Reference<XInterface > ORegistryServiceManager::loadWithImplementationName(
} }
/** /**
* Return all implementation out of the registry. * Return all implementations out of the registry.
*/ */
Sequence<OUString> ORegistryServiceManager::getFromServiceName( Sequence<OUString> ORegistryServiceManager::getFromServiceName(
std::u16string_view serviceName ) const std::u16string_view serviceName ) const
+1 -1
View File
@@ -719,7 +719,7 @@ bool SvNFFormatData::PutEntry(SvNFLanguageData& rCurrentLanguage,
sal_uInt32 CLOffset = ImpGenerateCL(rCurrentLanguage, rNatNum, eLge); // create new standard formats if necessary sal_uInt32 CLOffset = ImpGenerateCL(rCurrentLanguage, rNatNum, eLge); // create new standard formats if necessary
nKey = ImpIsEntry(p_Entry->GetFormatstring(),CLOffset, eLge); nKey = ImpIsEntry(p_Entry->GetFormatstring(),CLOffset, eLge);
if (nKey == NUMBERFORMAT_ENTRY_NOT_FOUND) // only in not yet present if (nKey == NUMBERFORMAT_ENTRY_NOT_FOUND) // only if not yet present
{ {
SvNumberformat* pStdFormat = GetFormatEntry(CLOffset + ZF_STANDARD); SvNumberformat* pStdFormat = GetFormatEntry(CLOffset + ZF_STANDARD);
sal_uInt32 nPos = CLOffset + pStdFormat->GetLastInsertKey( SvNumberformat::FormatterPrivateAccess() ); sal_uInt32 nPos = CLOffset + pStdFormat->GetLastInsertKey( SvNumberformat::FormatterPrivateAccess() );
@@ -121,7 +121,7 @@ AccessibleControlShape::~AccessibleControlShape()
m_xControlContextProxy.clear(); m_xControlContextProxy.clear();
m_xControlContextTypeAccess.clear(); m_xControlContextTypeAccess.clear();
m_xControlContextComponent.clear(); m_xControlContextComponent.clear();
// this should remove the _only_ three "real" reference (means not delegated to // this should remove the _only_ three "real" references (means not delegated to
// ourself) to this proxy, and thus delete it // ourself) to this proxy, and thus delete it
} }
+2 -2
View File
@@ -567,7 +567,7 @@ public:
virtual void UpdateData() override virtual void UpdateData() override
{ {
// would possibly only by needed if the XText interface is implemented // would possibly only be needed if the XText interface is implemented
// and its text needs to be updated. // and its text needs to be updated.
} }
virtual SfxBroadcaster& GetBroadcaster() const override virtual SfxBroadcaster& GetBroadcaster() const override
@@ -937,7 +937,7 @@ IMPL_LINK(WeldTextForwarder, NotifyHdl, EENotify&, rNotify, void)
if (rNotify.eNotificationType == EE_NOTIFY_PROCESSNOTIFICATIONS if (rNotify.eNotificationType == EE_NOTIFY_PROCESSNOTIFICATIONS
&& !pEditEngine->IsUpdateLayout()) && !pEditEngine->IsUpdateLayout())
{ {
// tdf#143088 an UpdateMode of false will just to on to cause // tdf#143088 an UpdateMode of false will just go on to cause
// AccessibleTextHelper_Impl::GetTextForwarder to throw an // AccessibleTextHelper_Impl::GetTextForwarder to throw an
// exception as a Frozen EditEngine is considered Invalid so return // exception as a Frozen EditEngine is considered Invalid so return
// early instead // early instead
+2 -2
View File
@@ -1069,7 +1069,7 @@ void SdrObjList::ReplaceObjectInContainer (
{ {
// A user defined position of the object that is to be replaced is // A user defined position of the object that is to be replaced is
// not transferred to the new object so erase the former and append // not transferred to the new object so erase the former and append
// the later object from/to the navigation order. // the latter object from/to the navigation order.
OSL_ASSERT(nObjectPosition < maList.size()); OSL_ASSERT(nObjectPosition < maList.size());
unotools::WeakReference<SdrObject> aReference (maList[nObjectPosition].get()); unotools::WeakReference<SdrObject> aReference (maList[nObjectPosition].get());
auto iObject = ::std::find( auto iObject = ::std::find(
@@ -1395,7 +1395,7 @@ SdrPage::~SdrPage()
pPageUser->PageInDestruction(*this); pPageUser->PageInDestruction(*this);
} }
// Clear the vector. This means that user do not need to call RemovePageUser() // Clear the vector. This means that users do not need to call RemovePageUser()
// when they get called from PageInDestruction(). // when they get called from PageInDestruction().
maPageUsers.clear(); maPageUsers.clear();
+4 -4
View File
@@ -119,8 +119,8 @@ struct Por_Info
*/ */
int const m_Mode; int const m_Mode;
Por_Info(const SwLinePortion& rPor, const SwTextPainter& rTextPainer, int const nMode) Por_Info(const SwLinePortion& rPor, const SwTextPainter& rTextPainter, int const nMode)
: mrPor(rPor), mrTextPainter(rTextPainer), m_Mode(nMode) {}; : mrPor(rPor), mrTextPainter(rTextPainter), m_Mode(nMode) {};
}; };
struct lt_TableColumn struct lt_TableColumn
@@ -185,14 +185,14 @@ class SwTaggedPDFHelper
}; };
/* /*
* Analyses the document structure and export Notes, Hyperlinks, References, * Analyses the document structure and exports Notes, Hyperlinks, References,
* and Outline. Link ids created during pdf export are stored in * and Outline. Link ids created during pdf export are stored in
* SwEnhancedPDFState, in order to use them during * SwEnhancedPDFState, in order to use them during
* tagged pdf output. Therefore the SwEnhancedPDFExportHelper is used * tagged pdf output. Therefore the SwEnhancedPDFExportHelper is used
* before painting. Unfortunately links from the EditEngine into the * before painting. Unfortunately links from the EditEngine into the
* Writer document require to be exported after they have been painted. * Writer document require to be exported after they have been painted.
* Therefore SwEnhancedPDFExportHelper also has to be used after the * Therefore SwEnhancedPDFExportHelper also has to be used after the
* painting process, the parameter bEditEngineOnly indicated that only * painting process, the parameter bEditEngineOnly indicates that only
* the bookmarks from the EditEngine have to be processed. * the bookmarks from the EditEngine have to be processed.
*/ */
class SwEnhancedPDFExportHelper class SwEnhancedPDFExportHelper
+3 -3
View File
@@ -219,7 +219,7 @@ public:
static SwContentNode* GoPrevSection( SwPosition *, bool bSkipHidden = true, static SwContentNode* GoPrevSection( SwPosition *, bool bSkipHidden = true,
bool bSkipProtect = true, bool canCrossBoundary = false ); bool bSkipProtect = true, bool canCrossBoundary = false );
/** Create an empty section of Start- and EndNote. It may be called /** Create an empty section of Start- and EndNode. It may be called
only if a new section with content is to be created, only if a new section with content is to be created,
e.g. at filters/Undo/... */ e.g. at filters/Undo/... */
static SwStartNode* MakeEmptySection( const SwNode& rWhere, static SwStartNode* MakeEmptySection( const SwNode& rWhere,
@@ -291,7 +291,7 @@ public:
/// Create regular text from what was table. /// Create regular text from what was table.
bool TableToText( const SwNodeRange& rRange, sal_Unicode cCh, bool TableToText( const SwNodeRange& rRange, sal_Unicode cCh,
SwUndoTableToText* ); SwUndoTableToText* );
/// Is in untbl.cxx and may called only by Undo-object. /// Is in untbl.cxx and may be called only by Undo-object.
SwTableNode* UndoTableToText( SwNodeOffset nStt, SwNodeOffset nEnd, SwTableNode* UndoTableToText( SwNodeOffset nStt, SwNodeOffset nEnd,
const SwTableToTextSaves& rSavedData ); const SwTableToTextSaves& rSavedData );
@@ -304,7 +304,7 @@ public:
sal_uInt16 nInsPos, sal_uInt16 nCnt = 1 ); sal_uInt16 nInsPos, sal_uInt16 nCnt = 1 );
/** Splits a table at the base-line which contains the index. /** Splits a table at the base-line which contains the index.
All base lines behind it are moved to a new table/ -node. All base lines behind it are moved to a new table/ -node.
Is the flag bCalcNewSize set to TRUE, the new SSize for both If the flag bCalcNewSize is set to TRUE, the new SSize for both
tables is calculated from the Maximum of the boxes, provided tables is calculated from the Maximum of the boxes, provided
SSize is set "absolute" (LONG_MAX). SSize is set "absolute" (LONG_MAX).
*/ */
+1 -1
View File
@@ -299,7 +299,7 @@ public:
/** Is in something protected (readonly) or selection contains /** Is in something protected (readonly) or selection contains
something protected. */ something protected. */
bool HasReadonlySel(bool bFormView, bool isReplace) const; bool HasReadonlySel(bool bFormView, bool isReplace) const;
/** Is there hidden sections in the selected area. */ /** Are there hidden sections in the selected area. */
bool HasHiddenSections() const; bool HasHiddenSections() const;
bool ContainsPosition(const SwPosition & rPos) const bool ContainsPosition(const SwPosition & rPos) const
+3 -3
View File
@@ -105,7 +105,7 @@ constexpr short lOutlineMinTextDistance = o3tl::toTwips(15, o3tl::Length::in100)
// Count of SystemField-types of SwDoc. // Count of SystemField-types of SwDoc.
#define INIT_FLDTYPES 33 #define INIT_FLDTYPES 33
// Count of predefined Seq-field types. It is always the last // Count of predefined Seq-field types. They are always the last
// fields before INIT_FLDTYPES. // fields before INIT_FLDTYPES.
#define INIT_SEQ_FLDTYPES 5 #define INIT_SEQ_FLDTYPES 5
@@ -123,7 +123,7 @@ SW_DLLPUBLIC Size GetGraphicSizeTwip( const Graphic&, vcl::RenderContext* pOutDe
// Separator for jumps to different content types in document. // Separator for jumps to different content types in document.
const sal_Unicode cMarkSeparator = '|'; const sal_Unicode cMarkSeparator = '|';
// Sequences names for jumps are <name of sequence>!<no> // Sequence names for jumps are <name of sequence>!<no>
const char cSequenceMarkSeparator = '!'; const char cSequenceMarkSeparator = '!';
/// separator for toxmarks: #<no>%19<text>%19<type><typename>|toxmark /// separator for toxmarks: #<no>%19<text>%19<type><typename>|toxmark
sal_Unicode const toxMarkSeparator = '\u0019'; sal_Unicode const toxMarkSeparator = '\u0019';
@@ -248,7 +248,7 @@ enum class PrepareHint
// MoveBwd: pVoid == pOldPage // MoveBwd: pVoid == pOldPage
Register, // Invalidate frames with registers. Register, // Invalidate frames with registers.
FootnoteInvalidationGone, // A Follow loses its footnote, possibly its first line can move up. FootnoteInvalidationGone, // A Follow loses its footnote, possibly its first line can move up.
FootnoteMove, // A footnote changes its page. Its contents receives at first a FootnoteMove, // A footnote changes its page. Its contents receive at first a
// height of zero in order to avoid too much noise. At formatting // height of zero in order to avoid too much noise. At formatting
// it checks whether it fits and if necessary changes its page again. // it checks whether it fits and if necessary changes its page again.
ErgoSum, // Needed because of movement in FootnoteFrames. Check QuoVadis/ErgoSum. ErgoSum, // Needed because of movement in FootnoteFrames. Check QuoVadis/ErgoSum.
+1 -1
View File
@@ -75,7 +75,7 @@ CPPUNIT_TEST_FIXTURE(SwCoreDocTest, testMathInsertAnchorType)
createSwDoc(); createSwDoc();
SwDoc* pDoc = getSwDoc(); SwDoc* pDoc = getSwDoc();
// When inserting an a math object. // When inserting a math object.
SwWrtShell* pShell = getSwDocShell()->GetWrtShell(); SwWrtShell* pShell = getSwDocShell()->GetWrtShell();
SvGlobalName aGlobalName(SO3_SM_CLASSID); SvGlobalName aGlobalName(SO3_SM_CLASSID);
pShell->InsertObject(svt::EmbeddedObjectRef(), &aGlobalName); pShell->InsertObject(svt::EmbeddedObjectRef(), &aGlobalName);
+1 -1
View File
@@ -806,7 +806,7 @@ CPPUNIT_TEST_FIXTURE(SwCoreLayoutTest, testDoublePageBorder)
// When rendering that document: // When rendering that document:
std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile(); std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile();
// Then make sure the top border is thick+thing and the bottom border is thin+thick (from top to // Then make sure the top border is thick+thin and the bottom border is thin+thick (from top to
// bottom): // bottom):
MetafileXmlDump dumper; MetafileXmlDump dumper;
xmlDocUniquePtr pXmlDoc = dumpAndParse(dumper, *xMetaFile); xmlDocUniquePtr pXmlDoc = dumpAndParse(dumper, *xMetaFile);
+2 -2
View File
@@ -273,7 +273,7 @@ DECLARE_SHELL_MAILMERGE_TEST(testTdf81750_shell, "tdf81750.odt", "10-testing-add
// prepare unit test and run // prepare unit test and run
executeMailMerge(); executeMailMerge();
// check several pages page // check several pages
OUString aExpected(u"Text: Foo "_ustr); OUString aExpected(u"Text: Foo "_ustr);
xmlDocUniquePtr pXmlDoc = parseLayoutDump(static_cast<SfxBaseModel*>(mxSwTextDocument.get())); xmlDocUniquePtr pXmlDoc = parseLayoutDump(static_cast<SfxBaseModel*>(mxSwTextDocument.get()));
assertXPathContent(pXmlDoc, "/root/page[1]/body/txt[2]", aExpected); assertXPathContent(pXmlDoc, "/root/page[1]/body/txt[2]", aExpected);
@@ -442,7 +442,7 @@ DECLARE_SHELL_MAILMERGE_TEST(testTdf168252, "mm-single-date.fodt", "single-date.
// Without the fix, this would fail with // Without the fix, this would fail with
// - Expected: 2025-08-31 // - Expected: 2025-08-31
// - Actual : 2025-09-02 // - Actual : 2025-09-02
// because the DB filed code assumed obsolete null date. // because the DB field code assumed obsolete null date.
CPPUNIT_ASSERT_EQUAL(u"2025-08-31"_ustr, mxSwTextDocument->getText()->getString()); CPPUNIT_ASSERT_EQUAL(u"2025-08-31"_ustr, mxSwTextDocument->getText()->getString());
} }
+1 -1
View File
@@ -1598,7 +1598,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf168817)
createSwDoc("ruby+hyperlink.fodt"); createSwDoc("ruby+hyperlink.fodt");
saveAndReload(TestFilter::ODT); saveAndReload(TestFilter::ODT);
xmlDocUniquePtr pXmlDoc = parseExport(u"content.xml"_ustr); xmlDocUniquePtr pXmlDoc = parseExport(u"content.xml"_ustr);
// Check that only one instance of respective elements are produced // Check that only one instance of respective elements is produced
assertXPath(pXmlDoc, "//text:p", 1); assertXPath(pXmlDoc, "//text:p", 1);
assertXPath(pXmlDoc, "//text:ruby", 1); assertXPath(pXmlDoc, "//text:ruby", 1);
assertXPath(pXmlDoc, "//text:a", 1); assertXPath(pXmlDoc, "//text:a", 1);