From 98397a48f1f33be3405b0f462fc20422f6363b68 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 16 Jan 2017 22:28:50 +0100 Subject: Typo: listerner->listener Change-Id: Ib2cb62477630641f0302769eacdd0dd00f4e760c Reviewed-on: https://gerrit.libreoffice.org/33192 Tested-by: Jenkins Reviewed-by: Julien Nabet --- .../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(-) 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 44cfcb952c34..bd3ce469d610 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 633ec641ad88..ca25c1458f78 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 033f25831b96..46cef1442634 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 ); -- cgit