[Libreoffice-commits] core.git: javaunohelper/test scripting/source

Julien Nabet serval2412 at yahoo.fr
Tue Jan 17 06:06:44 UTC 2017


 javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java |    2 -
 scripting/source/dlgprov/dlgevtatt.cxx                                 |   14 +++++-----
 scripting/source/dlgprov/dlgevtatt.hxx                                 |    2 -
 3 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 98397a48f1f33be3405b0f462fc20422f6363b68
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Jan 16 22:28:50 2017 +0100

    Typo: listerner->listener
    
    Change-Id: Ib2cb62477630641f0302769eacdd0dd00f4e760c
    Reviewed-on: https://gerrit.libreoffice.org/33192
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java
index 44cfcb95..bd3ce46 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java
@@ -83,7 +83,7 @@ public class ComponentBase_Test
         assertEquals(obj2.nDisposingCalled, 1);
         assertEquals(obj3.nDisposingCalled, 1);
 
-        logger.log(Level.FINE, "Adding a listener after dispose, causes a immediate call to the listerner.");
+        logger.log(Level.FINE, "Adding a listener after dispose, causes a immediate call to the listener.");
         obj1.nDisposingCalled= 0;
         comp.addEventListener(obj1);
         assertEquals(obj1.nDisposingCalled, 1);
diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx
index 633ec64..ca25c14 100644
--- a/scripting/source/dlgprov/dlgevtatt.cxx
+++ b/scripting/source/dlgprov/dlgevtatt.cxx
@@ -156,12 +156,12 @@ namespace dlgprov
         // key listeners by protocol when ScriptType = 'Script'
         // otherwise key is the ScriptType e.g. StarBasic
         if ( rxRTLListener.is() ) // set up handler for RTL_BASIC
-            listernersForTypes[ OUString("StarBasic") ] = rxRTLListener;
+            listenersForTypes[ OUString("StarBasic") ] = rxRTLListener;
         else
-            listernersForTypes[ OUString("StarBasic") ] = new DialogLegacyScriptListenerImpl( rxContext, rxModel );
+            listenersForTypes[ OUString("StarBasic") ] = new DialogLegacyScriptListenerImpl( rxContext, rxModel );
         // handler for Script & OUString("vnd.sun.star.UNO:")
-        listernersForTypes[ OUString("vnd.sun.star.UNO") ] = new DialogUnoScriptListenerImpl( rxContext, rxModel, rxControl, rxHandler, rxIntrospect, bProviderMode );
-        listernersForTypes[ OUString("vnd.sun.star.script") ] = new DialogSFScriptListenerImpl( rxContext, rxModel );
+        listenersForTypes[ OUString("vnd.sun.star.UNO") ] = new DialogUnoScriptListenerImpl( rxContext, rxModel, rxControl, rxHandler, rxIntrospect, bProviderMode );
+        listenersForTypes[ OUString("vnd.sun.star.script") ] = new DialogSFScriptListenerImpl( rxContext, rxModel );
 
         // determine the VBA compatibility mode from the Basic library container
         try
@@ -175,7 +175,7 @@ namespace dlgprov
         {
         }
         if ( mbUseFakeVBAEvents )
-            listernersForTypes[ OUString("VBAInterop") ] = new DialogVBAScriptListenerImpl( rxContext, rxControl, rxModel, sDialogLibName );
+            listenersForTypes[ OUString("VBAInterop") ] = new DialogVBAScriptListenerImpl( rxContext, rxControl, rxModel, sDialogLibName );
     }
 
 
@@ -187,8 +187,8 @@ namespace dlgprov
     Reference< script::XScriptListener >
     DialogEventsAttacherImpl::getScriptListenerForKey( const OUString& sKey ) throw ( RuntimeException )
     {
-        ListenerHash::iterator it = listernersForTypes.find( sKey );
-        if ( it == listernersForTypes.end() )
+        ListenerHash::iterator it = listenersForTypes.find( sKey );
+        if ( it == listenersForTypes.end() )
             throw RuntimeException(); // more text info here please
         return it->second;
     }
diff --git a/scripting/source/dlgprov/dlgevtatt.hxx b/scripting/source/dlgprov/dlgevtatt.hxx
index 033f258..46cef14 100644
--- a/scripting/source/dlgprov/dlgevtatt.hxx
+++ b/scripting/source/dlgprov/dlgevtatt.hxx
@@ -49,7 +49,7 @@ namespace dlgprov
     {
     private:
         bool mbUseFakeVBAEvents;
-        ListenerHash listernersForTypes;
+        ListenerHash listenersForTypes;
         css::uno::Reference< css::uno::XComponentContext > m_xContext;
         css::uno::Reference< css::script::XEventAttacher > m_xEventAttacher;
         css::uno::Reference< css::script::XScriptListener > getScriptListenerForKey( const OUString& sScriptName ) throw ( css::uno::RuntimeException );


More information about the Libreoffice-commits mailing list