diff options
author | Paul Cadach <paul@odt.east.telecom.kz> | 2006-09-22 19:54:20 +0000 |
---|---|---|
committer | Paul Cadach <paul@odt.east.telecom.kz> | 2006-09-22 19:54:20 +0000 |
commit | 50ed891da2c7a66f1139fcaf250a478d59da634c (patch) | |
tree | 764b461316aa0b2b25e77b27f71bf4ce372ed26b /channels/h323/compat_h323.h | |
parent | c2f9a779ac3d7a33c030a62978a8f0339366e929 (diff) |
Fix our capability's factory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/h323/compat_h323.h')
-rw-r--r-- | channels/h323/compat_h323.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/h323/compat_h323.h b/channels/h323/compat_h323.h index 2ea640c4a..63da8ac8c 100644 --- a/channels/h323/compat_h323.h +++ b/channels/h323/compat_h323.h @@ -52,7 +52,7 @@ template <class _Abstract_T, typename _Key_T = PString> class MyPFactory: public PFactory<_Abstract_T, _Key_T> { public: - template <class _Contrete_T> class Worker: public PFactory<_Abstract_T, _Key_T>::WorkerBase + template <class _Concrete_T> class Worker: public PFactory<_Abstract_T, _Key_T>::WorkerBase { public: Worker(const _Key_T &_key, bool singleton = false) @@ -64,6 +64,8 @@ public: { PFactory<_Abstract_T, _Key_T>::Unregister(key); } + protected: + virtual _Abstract_T *Create(const _Key_T &) const { return new _Concrete_T; } private: PString key; |