]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Some windows compile fixes
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 17 Oct 2009 20:21:18 +0000 (20:21 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 17 Oct 2009 20:21:18 +0000 (20:21 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11891 e03df62e-2008-0410-955e-edbf42e46eb7

include/extensible.h
include/users.h

index ca9c44546d2a88323a621965e6c72ddc73247d8e..449c7b38a46c58fccc66822eb9f72b17092c341d 100644 (file)
@@ -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);
index 0ce9f59ab681639b7f0ec801f31b321bb9d2fcbd..385cd2dfe5703fc1f6412d634eed58de3c11f559 100644 (file)
@@ -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.
  */