summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-17 20:21:18 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-17 20:21:18 +0000
commitbd5c443a6a7e93df59e0ef23aacba46b0916a8da (patch)
tree0ed61f09dfb51bc656f3ddcfda97a1d5798c5eec /include
parent822e2ca5aa84cb5f46bfa42b8bb7481231fdf691 (diff)
Some windows compile fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11891 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/extensible.h11
-rw-r--r--include/users.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/include/extensible.h b/include/extensible.h
index ca9c44546..449c7b38a 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -114,17 +114,6 @@ class SimpleExtItem : public LocalExtItem
return static_cast<T*>(get_raw(container));
}
- inline T* getNew(Extensible* container) const
- {
- T* ptr = get(container);
- if (!ptr)
- {
- ptr = new T;
- set_raw(container, ptr);
- }
- return ptr;
- }
-
inline void set(Extensible* container, const T& value)
{
T* ptr = new T(value);
diff --git a/include/users.h b/include/users.h
index 0ce9f59ab..385cd2dfe 100644
--- a/include/users.h
+++ b/include/users.h
@@ -59,7 +59,7 @@ enum RegistrationState {
/* Required forward declaration */
class Channel;
class UserResolver;
-class ConfigTag;
+struct ConfigTag;
/** Holds information relevent to &lt;connect allow&gt; and &lt;connect deny&gt; tags in the config file.
*/