summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/connection.h2
-rw-r--r--include/dynamic.h23
2 files changed, 8 insertions, 17 deletions
diff --git a/include/connection.h b/include/connection.h
index c74a494b1..0d9bdb683 100644
--- a/include/connection.h
+++ b/include/connection.h
@@ -151,7 +151,7 @@ class ircd_connector : public classbase
/** Class packet is deprecated.
* This declaration is preserved here to maintain documentation only.
*/
-class packet
+class packet : public classbase
{
};
diff --git a/include/dynamic.h b/include/dynamic.h
index b34f2358b..0382324ce 100644
--- a/include/dynamic.h
+++ b/include/dynamic.h
@@ -53,13 +53,8 @@ class DLLManager
class DLLFactoryBase : public DLLManager
{
public:
- DLLFactoryBase(
- const char *fname,
- const char *func_name=0
- );
-
+ DLLFactoryBase(const char *fname, const char *func_name = 0);
virtual ~DLLFactoryBase();
-
void * (*factory_func)(void);
};
@@ -83,19 +78,15 @@ class DLLFactoryBase : public DLLManager
// is deleted, because the DLL will get unloaded as well.
//
-template <class T>
-class DLLFactory : public DLLFactoryBase
+template <class T> class DLLFactory : public DLLFactoryBase
{
public:
- DLLFactory(
- const char *fname,
- const char *func_name=0
- ) : DLLFactoryBase( fname, func_name )
+ DLLFactory(const char *fname, const char *func_name=0) : DLLFactoryBase(fname,func_name)
{
- if( factory_func )
- factory = (T *)factory_func();
- else
- factory = 0;
+ if (factory_func)
+ factory = (T*)factory_func();
+ else
+ factory = 0;
}
~DLLFactory()