Author: rolf
Date: 2007-08-23 13:31:14 -0400 (Thu, 23 Aug 2007)
New Revision: 84723

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/type.cpp.in
   trunk/moon/src/type.h.in
Log:
2007-08-23  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

        * type.[cpp|h].in: Add const's here that were only added manually to 
the 
        generated files.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-08-23 16:40:13 UTC (rev 84722)
+++ trunk/moon/src/ChangeLog    2007-08-23 17:31:14 UTC (rev 84723)
@@ -1,3 +1,8 @@
+2007-08-23  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+
+       * type.[cpp|h].in: Add const's here that were only added manually to 
the 
+       generated files.
+
 2007-08-23  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * mplayer.cpp: Implemented volume/balance

Modified: trunk/moon/src/type.cpp.in
===================================================================
--- trunk/moon/src/type.cpp.in  2007-08-23 16:40:13 UTC (rev 84722)
+++ trunk/moon/src/type.cpp.in  2007-08-23 17:31:14 UTC (rev 84723)
@@ -25,7 +25,7 @@
 Type** Type::types;
 GHashTable* Type::types_by_name = NULL;
 
-Type::Type (char *name, Type::Kind type, Type::Kind parent)
+Type::Type (const char *name, Type::Kind type, Type::Kind parent)
 {
        this->name = strdup (name);
        this->type = type;
@@ -38,7 +38,7 @@
 }
 
 Type *
-Type::RegisterType (char *name, Type::Kind type, bool value_type)
+Type::RegisterType (const char *name, Type::Kind type, bool value_type)
 {
        return RegisterType (name, type, Type::INVALID, value_type);
 }
@@ -50,13 +50,13 @@
 }
 
 Type *
-Type::RegisterType (char *name, Type::Kind type, Type::Kind parent)
+Type::RegisterType (const char *name, Type::Kind type, Type::Kind parent)
 {
        return RegisterType (name, type, parent, false);
 }
 
 Type *
-Type::RegisterType (char *name, Type::Kind type, Type::Kind parent, bool 
value_type)
+Type::RegisterType (const char *name, Type::Kind type, Type::Kind parent, bool 
value_type)
 {
        if (types == NULL) {
                types = (Type**)calloc (Type::LASTTYPE, sizeof (Type*));
@@ -98,7 +98,7 @@
 }
 
 Type *
-Type::Find (char *name)
+Type::Find (const char *name)
 {
        Type *result;
 

Modified: trunk/moon/src/type.h.in
===================================================================
--- trunk/moon/src/type.h.in    2007-08-23 16:40:13 UTC (rev 84722)
+++ trunk/moon/src/type.h.in    2007-08-23 17:31:14 UTC (rev 84723)
@@ -47,10 +47,10 @@
        // END_MANAGED_MAPPING
                };
 
-       static Type* RegisterType (char *name, Type::Kind type, Type::Kind 
parent, bool value_type);
-       static Type* RegisterType (char *name, Type::Kind type, Type::Kind 
parent);
-       static Type* RegisterType (char *name, Type::Kind type, bool 
value_type);
-       static Type* Find (char *name);
+       static Type* RegisterType (const char *name, Type::Kind type, 
Type::Kind parent, bool value_type);
+       static Type* RegisterType (const char *name, Type::Kind type, 
Type::Kind parent);
+       static Type* RegisterType (const char *name, Type::Kind type, bool 
value_type);
+       static Type* Find (const char *name);
        static Type* Find (Type::Kind type);
        
        bool IsSubclassOf (Type::Kind super);   
@@ -61,7 +61,7 @@
 
        static void Shutdown ();
 private:
-       Type (char *name, Type::Kind type, Type::Kind parent);
+       Type (const char *name, Type::Kind type, Type::Kind parent);
        ~Type ();
        static Type** types;
        static GHashTable *types_by_name;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to