[Libreoffice-commits] core.git: framework/source reportdesign/source svtools/source sw/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 8 21:56:00 UTC 2021


 framework/source/uielement/langselectionmenucontroller.cxx |    4 ++--
 framework/source/uielement/newmenucontroller.cxx           |    4 ++--
 reportdesign/source/ui/inspection/GeometryHandler.cxx      |    8 ++++----
 svtools/source/uno/popupmenucontrollerbase.cxx             |    4 ++--
 sw/source/filter/html/swhtml.cxx                           |   12 ++++++------
 sw/source/filter/html/swhtml.hxx                           |    2 +-
 sw/source/uibase/inc/unotools.hxx                          |    2 +-
 7 files changed, 18 insertions(+), 18 deletions(-)

New commits:
commit 7c6605bd2c1b27c12c4a492921e537eb4bf5a98e
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Thu Apr 8 23:03:17 2021 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Thu Apr 8 23:55:20 2021 +0200

    Typos in code with variables containing "inital"->"initial"
    
    Change-Id: I48205b40b7f9a0b37da3712ae05c49ff4a618db1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113823
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/framework/source/uielement/langselectionmenucontroller.cxx b/framework/source/uielement/langselectionmenucontroller.cxx
index edcfbae5c6c2..fe340caf3fc8 100644
--- a/framework/source/uielement/langselectionmenucontroller.cxx
+++ b/framework/source/uielement/langselectionmenucontroller.cxx
@@ -276,8 +276,8 @@ void SAL_CALL LanguageSelectionMenuController::initialize( const Sequence< Any >
 {
     osl::MutexGuard aLock( m_aMutex );
 
-    bool bInitalized( m_bInitialized );
-    if ( !bInitalized )
+    bool bInitialized( m_bInitialized );
+    if ( !bInitialized )
     {
         svt::PopupMenuControllerBase::initialize(aArguments);
 
diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx
index 76f7bc6eb194..4189442d701c 100644
--- a/framework/source/uielement/newmenucontroller.cxx
+++ b/framework/source/uielement/newmenucontroller.cxx
@@ -483,8 +483,8 @@ void SAL_CALL NewMenuController::initialize( const Sequence< Any >& aArguments )
 {
     osl::MutexGuard aLock( m_aMutex );
 
-    bool bInitalized( m_bInitialized );
-    if ( bInitalized )
+    bool bInitialized( m_bInitialized );
+    if ( bInitialized )
         return;
 
     svt::PopupMenuControllerBase::initialize( aArguments );
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index 2392f6e6b6a9..512b6837be30 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -1803,8 +1803,8 @@ bool GeometryHandler::isDefaultFunction( const OUString& _sQuotedFunction
         {
             if ( !_xFunctionsSupplier.is() || _xFunctionsSupplier == aFind.first->second.second )
             {
-                const beans::Optional< OUString> aInitalFormula = aFind.first->second.first->getInitialFormula();
-                if ( aInitalFormula.IsPresent )
+                const beans::Optional< OUString> aInitialFormula = aFind.first->second.first->getInitialFormula();
+                if ( aInitialFormula.IsPresent )
                 {
                     OUString sDefaultFunctionName;
                     bDefaultFunction = impl_isDefaultFunction_nothrow(aFind.first->second.first,_rDataField,sDefaultFunctionName);
@@ -2052,8 +2052,8 @@ bool GeometryHandler::impl_isCounterFunction_throw(const OUString& _sQuotedFunct
     ::std::pair<TFunctions::const_iterator,TFunctions::const_iterator> aFind = m_aFunctionNames.equal_range(_sQuotedFunctionName);
     while ( aFind.first != aFind.second )
     {
-        const beans::Optional< OUString> aInitalFormula = aFind.first->second.first->getInitialFormula();
-        if ( aInitalFormula.IsPresent )
+        const beans::Optional< OUString> aInitialFormula = aFind.first->second.first->getInitialFormula();
+        if ( aInitialFormula.IsPresent )
         {
             const OUString sFormula( aFind.first->second.first->getFormula() );
             i18nutil::SearchOptions2 aSearchOptions;
diff --git a/svtools/source/uno/popupmenucontrollerbase.cxx b/svtools/source/uno/popupmenucontrollerbase.cxx
index 6cd12e0e0df0..d9cffe188c4c 100644
--- a/svtools/source/uno/popupmenucontrollerbase.cxx
+++ b/svtools/source/uno/popupmenucontrollerbase.cxx
@@ -300,8 +300,8 @@ void SAL_CALL PopupMenuControllerBase::initialize( const Sequence< Any >& aArgum
 {
     osl::MutexGuard aLock( m_aMutex );
 
-    bool bInitalized( m_bInitialized );
-    if ( bInitalized )
+    bool bInitialized( m_bInitialized );
+    if ( bInitialized )
         return;
 
     PropertyValue       aPropValue;
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 466e0d6e8c71..768361341d01 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -286,7 +286,7 @@ SwHTMLParser::SwHTMLParser( SwDoc* pD, SwPaM& rCursor, SvStream& rIn,
     m_nContinue( 0 ),
 #endif
     m_eParaAdjust( SvxAdjust::End ),
-    m_bDocInitalized( false ),
+    m_bDocInitialized( false ),
     m_bSetModEnabled( false ),
     m_bInFloatingFrame( false ),
     m_bInField( false ),
@@ -954,8 +954,8 @@ void SwHTMLParser::Notify(const SfxHint& rHint)
 
 void SwHTMLParser::DocumentDetected()
 {
-    OSL_ENSURE( !m_bDocInitalized, "DocumentDetected called multiple times" );
-    m_bDocInitalized = true;
+    OSL_ENSURE( !m_bDocInitialized, "DocumentDetected called multiple times" );
+    m_bDocInitialized = true;
     if( IsNewDoc() )
     {
         if( IsInHeader() )
@@ -1073,7 +1073,7 @@ void SwHTMLParser::NextToken( HtmlTokenId nToken )
     // Find out what type of document it is if we don't know already.
     // For Controls this has to be finished before the control is inserted
     // because for inserting a View is needed.
-    if( !m_bDocInitalized )
+    if( !m_bDocInitialized )
         DocumentDetected();
 
     bool bGetIDOption = false, bInsertUnknown = false;
@@ -1253,7 +1253,7 @@ void SwHTMLParser::NextToken( HtmlTokenId nToken )
             // (but surely if we are not in the header section) fdo#36080 fdo#34666
             if (!aToken.isEmpty() && !IsInHeader() )
             {
-                if( !m_bDocInitalized )
+                if( !m_bDocInitialized )
                     DocumentDetected();
                 m_xDoc->getIDocumentContentOperations().InsertString( *m_pPam, aToken );
 
@@ -1524,7 +1524,7 @@ void SwHTMLParser::NextToken( HtmlTokenId nToken )
 
         if( !aToken.isEmpty() )
         {
-            if( !m_bDocInitalized )
+            if( !m_bDocInitialized )
                 DocumentDetected();
 
             if (!m_aEmbeds.empty())
diff --git a/sw/source/filter/html/swhtml.hxx b/sw/source/filter/html/swhtml.hxx
index 0f4809e23558..2c365c09dfb4 100644
--- a/sw/source/filter/html/swhtml.hxx
+++ b/sw/source/filter/html/swhtml.hxx
@@ -432,7 +432,7 @@ class SwHTMLParser : public SfxHTMLParser, public SvtListener
 
     bool m_bOldIsHTMLMode : 1;    // Was it a HTML document?
 
-    bool m_bDocInitalized : 1;    // document resp. shell was initialize
+    bool m_bDocInitialized : 1;   // document resp. shell was initialize
                                   // flag to prevent double init via recursion
     bool m_bViewCreated : 1;      // the view was already created (asynchronous)
     bool m_bSetModEnabled : 1;
diff --git a/sw/source/uibase/inc/unotools.hxx b/sw/source/uibase/inc/unotools.hxx
index 4e72a5309920..c5d45ed3a6ef 100644
--- a/sw/source/uibase/inc/unotools.hxx
+++ b/sw/source/uibase/inc/unotools.hxx
@@ -62,7 +62,7 @@ class SW_DLLPUBLIC SwOneExampleFrame : public weld::CustomWidgetController
 
 public:
     SwOneExampleFrame(sal_uInt32 nStyleFlags,
-                    const Link<SwOneExampleFrame&,void>* pInitalizedLink,
+                    const Link<SwOneExampleFrame&,void>* pInitializedLink,
                     const OUString* pURL = nullptr);
     virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
     virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;


More information about the Libreoffice-commits mailing list