This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO42X by this push:
     new b3bea0d120 misc: fix spelling (#213)
b3bea0d120 is described below

commit b3bea0d120d84c8332a4e85beea0c030cd6a5177
Author: John Bampton <jbamp...@users.noreply.github.com>
AuthorDate: Wed May 15 06:52:44 2024 +1000

    misc: fix spelling (#213)
    
    * misc: fix spelling
    
    * Update olepersist.cxx
    
    ---------
    
    Co-authored-by: Matthias Seidel <msei...@apache.org>
    (cherry picked from commit 8735c047413135516379fb08dc40a373c8411677)
---
 main/embeddedobj/source/msole/olepersist.cxx       | 46 +++++++++++-----------
 main/forms/source/xforms/submission/replace.cxx    |  2 +-
 .../source/xforms/submission/submission_get.cxx    |  6 +--
 .../source/xforms/submission/submission_post.cxx   |  2 +-
 main/framework/test/typecfg/cfgview.cxx            |  2 +-
 .../tests/java/ifc/frame/_XNotifyingDispatch.java  |  2 +-
 main/sal/rtl/source/unload.cxx                     |  2 +-
 7 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/main/embeddedobj/source/msole/olepersist.cxx 
b/main/embeddedobj/source/msole/olepersist.cxx
index e4df5d028a..926f89a71c 100644
--- a/main/embeddedobj/source/msole/olepersist.cxx
+++ b/main/embeddedobj/source/msole/olepersist.cxx
@@ -443,7 +443,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const 
uno::Reference< io::XStrea
                                                                                
                const uno::Reference< io::XStream >& 
xCachedVisualRepresentation )
                throw ( uno::Exception )
 {
-       OSL_ENSURE( xTargetStream.is() && xCachedVisualRepresentation.is(), 
"Invalid argumants!\n" );
+       OSL_ENSURE( xTargetStream.is() && xCachedVisualRepresentation.is(), 
"Invalid arguments!\n" );
 
        if ( !xTargetStream.is() || !xCachedVisualRepresentation.is() )
                throw uno::RuntimeException();
@@ -594,7 +594,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const 
uno::Reference< io::XStrea
 void OleEmbeddedObject::RemoveVisualCache_Impl( const uno::Reference< 
io::XStream >& xTargetStream )
                throw ( uno::Exception )
 {
-       OSL_ENSURE( xTargetStream.is(), "Invalid argumant!\n" );
+       OSL_ENSURE( xTargetStream.is(), "Invalid argument!\n" );
        if ( !xTargetStream.is() )
                throw uno::RuntimeException();
 
@@ -641,7 +641,7 @@ sal_Bool OleEmbeddedObject::HasVisReplInStream()
                        SetVisReplInStream( sal_True );
                else
                {
-                       RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) 
OleEmbeddedObject::HasVisualReplInStream, analizing" );
+                       RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) 
OleEmbeddedObject::HasVisualReplInStream, analyzing" );
 
                        uno::Reference< io::XInputStream > xStream;
                        
@@ -818,7 +818,7 @@ uno::Reference< io::XStream > 
OleEmbeddedObject::TryToRetrieveCachedVisualRepres
                                                                        try
                                                                        {
                                                                                
CreateOleComponentAndLoad_Impl( NULL );
-                                                                               
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during consruction
+                                                                               
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during construction
                                                                        }
                                                                        catch( 
uno::Exception& )
                                                                        {
@@ -1385,7 +1385,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         xWrappedObject->setPersistentEntry( xStorage, sEntName, 
nEntryConnectionMode, lArguments, lObjArgs );
         return;
     }
@@ -1466,9 +1466,9 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
                if ( m_bFromClipboard )
                {
                        // the object should be initialized from clipboard
-                       // inpossibility to initialize the object means error 
here
+                       // impossibility to initialize the object means error 
here
                        CreateOleComponentFromClipboard_Impl( NULL );
-                       m_aClassID = m_pOleComponent->GetCLSID(); // was not 
set during consruction
+                       m_aClassID = m_pOleComponent->GetCLSID(); // was not 
set during construction
                        m_pOleComponent->RunObject();
                        m_nObjectState = embed::EmbedStates::RUNNING;
                }
@@ -1480,7 +1480,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
                        try
                        {
                                CreateOleComponentAndLoad_Impl( NULL );
-                               m_aClassID = m_pOleComponent->GetCLSID(); // 
was not set during consruction
+                               m_aClassID = m_pOleComponent->GetCLSID(); // 
was not set during construction
                        }
                        catch( uno::Exception& )
                        {
@@ -1543,7 +1543,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
                                m_pOleComponent->CreateLinkFromFile( aURL );
 
                        m_pOleComponent->RunObject();
-                       m_aClassID = m_pOleComponent->GetCLSID(); // was not 
set during consruction
+                       m_aClassID = m_pOleComponent->GetCLSID(); // was not 
set during construction
 
                        m_nObjectState = embed::EmbedStates::RUNNING;
                }
@@ -1557,7 +1557,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
                                                                                
3 );
        }
 #else
-       // On unix the ole object can not do anything except storing itself 
somewere
+       // On unix the ole object can not do anything except storing itself 
somewhere
        if ( nEntryConnectionMode == embed::EntryInitModes::DEFAULT_INIT && 
bElExists )
        {
                // TODO/LATER: detect classID of the object
@@ -1567,7 +1567,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
        }
        else if ( nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
        {
-               // do nothing, the object has already switched it's persistence
+               // do nothing, the object has already switched its persistence
        }
        else
                throw lang::IllegalArgumentException( 
::rtl::OUString::createFromAscii( "Wrong connection mode is provided!\n" ),
@@ -1594,7 +1594,7 @@ void SAL_CALL OleEmbeddedObject::storeToEntry( const 
uno::Reference< embed::XSto
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         xWrappedObject->storeToEntry( xStorage, sEntName, lArguments, lObjArgs 
);
         return;
     }
@@ -1628,7 +1628,7 @@ void SAL_CALL OleEmbeddedObject::storeAsEntry( const 
uno::Reference< embed::XSto
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         xWrappedObject->storeAsEntry( xStorage, sEntName, lArguments, lObjArgs 
);
         return;
     }
@@ -1657,7 +1657,7 @@ void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool 
bUseNew )
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         xWrappedObject->saveCompleted( bUseNew );
         return;
     }
@@ -1755,7 +1755,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::hasEntry()
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         return xWrappedObject->hasEntry();
     }
     // end wrapping related part ====================
@@ -1784,7 +1784,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::hasEntry()
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         return xWrappedObject->getEntryName();
     }
     // end wrapping related part ====================
@@ -1822,7 +1822,7 @@ void SAL_CALL OleEmbeddedObject::storeOwn()
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         xWrappedObject->storeOwn();
         return;
     }
@@ -1875,7 +1875,7 @@ void SAL_CALL OleEmbeddedObject::storeOwn()
                if ( m_bIsLink )
                {
                        // just let the link store itself
-                       // in case visual repersentation must be stored also
+                       // in case visual representation must be stored also
                        // the procedure should be the same as for embedded 
objects
 
                        uno::Reference< io::XOutputStream > xOutStream = 
GetStreamForSaving();
@@ -1952,7 +1952,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         return xWrappedObject->isReadonly();
     }
     // end wrapping related part ====================
@@ -1990,7 +1990,7 @@ void SAL_CALL OleEmbeddedObject::reload(
     uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         xWrappedObject->reload( lArguments, lObjArgs );
         return;
     }
@@ -2033,7 +2033,7 @@ void SAL_CALL OleEmbeddedObject::breakLink( const 
uno::Reference< embed::XStorag
     uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         xWrappedObject->breakLink( xStorage, sEntName );
         return;
     }
@@ -2149,7 +2149,7 @@ sal_Bool SAL_CALL  OleEmbeddedObject::isLink()
     uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         return xWrappedObject->isLink();
     }
     // end wrapping related part ====================
@@ -2171,7 +2171,7 @@ sal_Bool SAL_CALL  OleEmbeddedObject::isLink()
     uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, 
uno::UNO_QUERY );
     if ( xWrappedObject.is() )
     {
-        // the object was converted to OOo embedded object, the current 
implementation is now only a wrapper
+        // the object was converted to AOO embedded object, the current 
implementation is now only a wrapper
         return xWrappedObject->getLinkURL();
     }
     // end wrapping related part ====================
diff --git a/main/forms/source/xforms/submission/replace.cxx 
b/main/forms/source/xforms/submission/replace.cxx
index 488d969196..02920c5f57 100644
--- a/main/forms/source/xforms/submission/replace.cxx
+++ b/main/forms/source/xforms/submission/replace.cxx
@@ -127,7 +127,7 @@ CSubmission::SubmissionResult CSubmission::replace(const 
::rtl::OUString& aRepla
     else
         pHelper->m_aInteractionHandler = CSS::uno::Reference< 
XInteractionHandler >(m_aFactory->createInstance(
         
::rtl::OUString::createFromAscii("com.sun.star.task.InteractionHandler")), 
UNO_QUERY);
-    OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create 
IntreractionHandler");
+    OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create 
InteractionHandler");
 
     CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper;
     pHelper->m_aProgressHandler = Reference< XProgressHandler 
>(pProgressHelper);
diff --git a/main/forms/source/xforms/submission/submission_get.cxx 
b/main/forms/source/xforms/submission/submission_get.cxx
index d47f02cc2f..3e9e74720a 100644
--- a/main/forms/source/xforms/submission/submission_get.cxx
+++ b/main/forms/source/xforms/submission/submission_get.cxx
@@ -53,7 +53,7 @@ CSubmissionGet::CSubmissionGet(const rtl::OUString& aURL, 
const CSS::uno::Refere
 
 CSubmission::SubmissionResult CSubmissionGet::submit(const 
CSS::uno::Reference< CSS::task::XInteractionHandler >& aInteractionHandler)
 {    
-    // GET always uses apllicatin/x-www-formurlencoded
+    // GET always uses application/x-www-formurlencoded
     auto_ptr< CSerialization > apSerialization(new CSerializationURLEncoded());
     apSerialization->setSource(m_aFragment);
     apSerialization->serialize();
@@ -67,7 +67,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const 
CSS::uno::Reference<
     else
         pHelper->m_aInteractionHandler = CSS::uno::Reference< 
XInteractionHandler >(m_aFactory->createInstance(
             
OUString::createFromAscii("com.sun.star.task.InteractionHandler")), UNO_QUERY);
-    OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create 
IntreractionHandler");
+    OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create 
InteractionHandler");
     CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper;
     pHelper->m_aProgressHandler = CSS::uno::Reference< XProgressHandler 
>(pProgressHelper);
 
@@ -104,7 +104,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const 
CSS::uno::Reference<
     } catch (Exception&)
     {
         // XXX
-        OSL_ENSURE(sal_False, "Exception during UCB operatration.");
+        OSL_ENSURE(sal_False, "Exception during UCB operation.");
         return UNKNOWN_ERROR;
     }
 
diff --git a/main/forms/source/xforms/submission/submission_post.cxx 
b/main/forms/source/xforms/submission/submission_post.cxx
index ee67dc5fab..19769366f0 100644
--- a/main/forms/source/xforms/submission/submission_post.cxx
+++ b/main/forms/source/xforms/submission/submission_post.cxx
@@ -91,7 +91,7 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const 
CSS::uno::Reference<
     } catch (Exception&)
     {
         // XXX
-        OSL_ENSURE(sal_False, "Exception during UCB operatration.");
+        OSL_ENSURE(sal_False, "Exception during UCB operation.");
         return UNKNOWN_ERROR;
     }
     
diff --git a/main/framework/test/typecfg/cfgview.cxx 
b/main/framework/test/typecfg/cfgview.cxx
index 4712dc744b..d8d83f9735 100644
--- a/main/framework/test/typecfg/cfgview.cxx
+++ b/main/framework/test/typecfg/cfgview.cxx
@@ -67,7 +67,7 @@
 #define RDBFILE                                     
DECLARE_ASCII("typecfg.rdb" )
 #define ARGUMENT_DIRNAME                            DECLARE_ASCII("-dir="      
 )           // argument for output directory
 #define ARGUMENT_VERSION                            DECLARE_ASCII("-ver="      
 )           // argument for file version to read    [1|2|3]
-#define ARGUMENTLENGTH                              5                          
             // same length for all arguemnts make it easier to detect it :-)
+#define ARGUMENTLENGTH                              5                          
             // same length for all arguments make it easier to detect it :-)
 #define ARGUMENTFOUND                               0                          
             // OUString::compareTo returns 0 if searched string match given one
 
 #define MENU_HTML                                   "menu.html"
diff --git a/main/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java 
b/main/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java
index 735ca8bf0d..221330be03 100644
--- a/main/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java
+++ b/main/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java
@@ -44,7 +44,7 @@ import com.sun.star.frame.DispatchResultEvent;
 *   </code>): URL for passing to <code>dispatch()</code> method. </li>
 *  <li> <code>[OPTIONAL] 'XNotifyingDispatchArgument'</code> 
 *    (of type  sequence<code>com::sun::star::beans::PropertyValue
-*   </code>): argumets for <code>dispatchWithNotification()</code> method. 
</li>
+*   </code>): arguments for <code>dispatchWithNotification()</code> method. 
</li>
 * <ul> <p>
 * @see com.sun.star.frame.XDispatch
 * @see com.sun.star.frame.XNotifyingDispatch
diff --git a/main/sal/rtl/source/unload.cxx b/main/sal/rtl/source/unload.cxx
index 08efd32488..21c8332222 100644
--- a/main/sal/rtl/source/unload.cxx
+++ b/main/sal/rtl/source/unload.cxx
@@ -250,7 +250,7 @@ extern "C" void SAL_CALL rtl_unloadUnusedModules( 
TimeValue* libUnused)
        // notify all listeners
        rtl_notifyUnloadingListeners();
 
-       // prepare default TimeValue if argumetn is NULL
+       // prepare default TimeValue if argument is NULL
        TimeValue nullTime={0,0};
        TimeValue* pLibUnused= libUnused? libUnused : &nullTime;
 

Reply via email to