diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kross/api/event.h | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kross/api/event.h')
-rw-r--r-- | lib/kross/api/event.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kross/api/event.h b/lib/kross/api/event.h index e378052b..26a92117 100644 --- a/lib/kross/api/event.h +++ b/lib/kross/api/event.h @@ -97,7 +97,7 @@ namespace Kross { namespace Api { */ inline void addFunction(const TQString& name, FunctionPtr function) { - m_functions.tqreplace(name, new Function0<T>(static_cast<T*>(this), function)); + m_functions.replace(name, new Function0<T>(static_cast<T*>(this), function)); } /** @@ -114,7 +114,7 @@ namespace Kross { namespace Api { */ inline void addFunction(const TQString& name, Function* function) { - m_functions.tqreplace(name, function); + m_functions.replace(name, function); } /** @@ -124,7 +124,7 @@ namespace Kross { namespace Api { template<class RETURNOBJ, class ARG1OBJ, class ARG2OBJ, class ARG3OBJ, class ARG4OBJ, class INSTANCE, typename METHOD> inline void addFunction4(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0, ARG3OBJ* arg3 = 0, ARG4OBJ* arg4 = 0) { - m_functions.tqreplace(name, + m_functions.replace(name, new Kross::Api::ProxyFunction<INSTANCE, METHOD, RETURNOBJ, ARG1OBJ, ARG2OBJ, ARG3OBJ, ARG4OBJ> (instance, method, arg1, arg2, arg3, arg4) ); @@ -134,7 +134,7 @@ namespace Kross { namespace Api { template<class RETURNOBJ, class ARG1OBJ, class ARG2OBJ, class ARG3OBJ, class INSTANCE, typename METHOD> inline void addFunction3(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0, ARG3OBJ* arg3 = 0) { - m_functions.tqreplace(name, + m_functions.replace(name, new Kross::Api::ProxyFunction<INSTANCE, METHOD, RETURNOBJ, ARG1OBJ, ARG2OBJ, ARG3OBJ> (instance, method, arg1, arg2, arg3) ); @@ -144,7 +144,7 @@ namespace Kross { namespace Api { template<class RETURNOBJ, class ARG1OBJ, class ARG2OBJ, class INSTANCE, typename METHOD> inline void addFunction2(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0) { - m_functions.tqreplace(name, + m_functions.replace(name, new Kross::Api::ProxyFunction<INSTANCE, METHOD, RETURNOBJ, ARG1OBJ, ARG2OBJ> (instance, method, arg1, arg2) ); @@ -154,7 +154,7 @@ namespace Kross { namespace Api { template<class RETURNOBJ, class ARG1OBJ, class INSTANCE, typename METHOD> inline void addFunction1(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0) { - m_functions.tqreplace(name, + m_functions.replace(name, new Kross::Api::ProxyFunction<INSTANCE, METHOD, RETURNOBJ, ARG1OBJ> (instance, method, arg1) ); @@ -164,7 +164,7 @@ namespace Kross { namespace Api { template<class RETURNOBJ, class INSTANCE, typename METHOD> inline void addFunction0(const TQString& name, INSTANCE* instance, METHOD method) { - m_functions.tqreplace(name, + m_functions.replace(name, new Kross::Api::ProxyFunction<INSTANCE, METHOD, RETURNOBJ> (instance, method) ); @@ -177,7 +177,7 @@ namespace Kross { namespace Api { */ bool isAFunction(const TQString & name) const { - return m_functions.tqcontains(name); + return m_functions.contains(name); } /** |