diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 | 
| commit | 6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (patch) | |
| tree | c2505409c68d554b1e776cdb0c8104af54d375bf /backend/ObjectFactory.h | |
| parent | c1d43cddee94dd370078f755d33147c9a8181852 (diff) | |
create backend string class
Diffstat (limited to 'backend/ObjectFactory.h')
| -rw-r--r-- | backend/ObjectFactory.h | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/backend/ObjectFactory.h b/backend/ObjectFactory.h index 60123bd..440d4bd 100644 --- a/backend/ObjectFactory.h +++ b/backend/ObjectFactory.h @@ -11,8 +11,8 @@ enum ObjectType {  // database object table row  struct UniversalObject { -	const char * name; -	const char * description; +	String name; +	String description;  	ObjectType type;  	int min_value;  	int max_value; @@ -22,7 +22,7 @@ struct UniversalObject {  class ObjectFactory {  public:  	static Object * create_object(const UniversalObject & universal); -	static Object * create_object(const char * name = "", const char * description = ""); +	static Object * create_object(const String & name = "", const String & description = "");  private:  	ObjectFactory() = delete; |