diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 17:17:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 17:17:06 +0000 |
commit | 8a21bfcb21094e4ca8440c37dec4a5df3e5bddc7 (patch) | |
tree | 4a9d4c57fb306dd8663efd17d87eb27ec07344ce /include | |
parent | 6fa35bdb1814ef4eab42d050e283d05910dbf3d2 (diff) |
Tidy up, make a lot of char*'s const
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4769 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/dynamic.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/dynamic.h b/include/dynamic.h index ee43d1712..937005e11 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -25,14 +25,14 @@ typedef void * (initfunc) (void); class DLLManager { public: - DLLManager(char *fname); + DLLManager(const char *fname); virtual ~DLLManager(); #ifdef STATIC_LINK - bool GetSymbol( initfunc* &v, char *sym_name ); + bool GetSymbol( initfunc* &v, const char *sym_name ); #else - bool GetSymbol( void **, char *sym_name ); + bool GetSymbol( void **, const char *sym_name ); #endif char* LastError() @@ -52,7 +52,7 @@ class DLLManager class DLLFactoryBase : public DLLManager { public: - DLLFactoryBase(char *fname, char *func_name = 0); + DLLFactoryBase(const char *fname, const char *func_name = 0); virtual ~DLLFactoryBase(); #ifdef STATIC_LINK initfunc *factory_func; @@ -65,7 +65,7 @@ class DLLFactoryBase : public DLLManager template <class T> class DLLFactory : public DLLFactoryBase { public: - DLLFactory(char *fname, 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(); @@ -81,9 +81,4 @@ template <class T> class DLLFactory : public DLLFactoryBase T *factory; }; - - - - - #endif |