summaryrefslogtreecommitdiff
path: root/forms/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-12 11:32:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-12 11:09:43 +0000
commit774d2a94d31c14fb24c07a5c85220e5ef528ad20 (patch)
tree36c8b4ddc4572f55d208bc022802cbf3d18b71bc /forms/source/misc
parent69ce52fbf26fab9239562d2bfd407db67cfb6ec8 (diff)
loplugin:constantparam in extensions..lotuswordpro
Change-Id: Ifb30d5d53536045638d872761626a1b60fa52dad Reviewed-on: https://gerrit.libreoffice.org/28831 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'forms/source/misc')
-rw-r--r--forms/source/misc/InterfaceContainer.cxx25
1 files changed, 3 insertions, 22 deletions
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index 9dde69cdaa90..e8973e7d6000 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -319,7 +319,7 @@ void SAL_CALL OInterfaceContainer::writeEvents(const Reference<XObjectOutputStre
if ( m_xEventAttacher.is() )
lcl_saveEvents( aSave, m_xEventAttacher, m_aItems.size() );
- transformEvents( efVersionSO5x );
+ transformEvents();
try
{
@@ -377,23 +377,7 @@ struct TransformEventTo52Format : public ::std::unary_function< ScriptEventDescr
};
-struct TransformEventTo60Format : public ::std::unary_function< ScriptEventDescriptor, void >
-{
- void operator()( ScriptEventDescriptor& _rDescriptor )
- {
- if ( _rDescriptor.ScriptType == "StarBasic" )
- { // it's a starbasic macro
- if ( _rDescriptor.ScriptCode.indexOf( ':' ) < 0 )
- { // the macro name does not already contain a :
- // -> default the type to "document"
- _rDescriptor.ScriptCode = "document:" + _rDescriptor.ScriptCode;
- }
- }
- }
-};
-
-
-void OInterfaceContainer::transformEvents( const EventFormat _eTargetFormat )
+void OInterfaceContainer::transformEvents()
{
OSL_ENSURE( m_xEventAttacher.is(), "OInterfaceContainer::transformEvents: no event attacher manager!" );
if ( !m_xEventAttacher.is() )
@@ -417,10 +401,7 @@ void OInterfaceContainer::transformEvents( const EventFormat _eTargetFormat )
ScriptEventDescriptor* pChildEventsEnd = pChildEvents + aChildEvents.getLength();
// do the transformation
- if ( efVersionSO6x == _eTargetFormat )
- ::std::for_each( pChildEvents, pChildEventsEnd, TransformEventTo60Format() );
- else
- ::std::for_each( pChildEvents, pChildEventsEnd, TransformEventTo52Format() );
+ ::std::for_each( pChildEvents, pChildEventsEnd, TransformEventTo52Format() );
// revoke the script events
m_xEventAttacher->revokeScriptEvents( i );