summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-08-04 22:45:56 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-04 22:45:56 -0400
commite2258940b35b0ece48759914c258a519ba619364 (patch)
tree17bb7b9f8bbfe932a2e2621871d34cd941ca37a7 /comphelper
parent2c5401be8fcc4d4aa0e665c0c8fedd04d78cc121 (diff)
Found one inconsistency between deque and uno::Sequence usages.
ListenerType vs ScriptType. Also, deque supports clear().
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/eventattachermgr/eventattachermgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx
index 7cfce7f97074..ec61c613032a 100644
--- a/comphelper/source/eventattachermgr/eventattachermgr.cxx
+++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx
@@ -643,7 +643,7 @@ void SAL_CALL ImplEventAttacherManager::revokeScriptEvents(sal_Int32 nIndex )
::std::deque< AttachedObject_Impl > aList = (*aIt).aObjList;
::std::for_each(aList.begin(), aList.end(), DetachObject(*this, nIndex));
#ifdef DEQUE_OK
- (*aIt).aEventList = ::std::deque< ScriptEventDescriptor >();
+ (*aIt).aEventList.clear();
#else
(*aIt).aEventList.realloc( 0 );
#endif
@@ -751,7 +751,7 @@ void SAL_CALL ImplEventAttacherManager::attach(sal_Int32 nIndex, const Reference
try
{
xAdapter = xAttacher->attachSingleEventListener( rCurObj.xTarget, xAll,
- rCurObj.aHelper, (*aEvtIt).ScriptType,
+ rCurObj.aHelper, (*aEvtIt).ListenerType,
(*aEvtIt).AddListenerParam, (*aEvtIt).EventMethod );
}
catch( Exception& )