Initialize all members of Property class
This commit is contained in:
		
							parent
							
								
									dbfca7353e
								
							
						
					
					
						commit
						4811193998
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -114,9 +114,17 @@ public: | |||
| 	struct Changeable { | ||||
| 		enum Value { Always, WhenIdle, OnlyAtStart, Deprecated }; | ||||
| 	}; | ||||
| 
 | ||||
| 	const std::string propname; | ||||
| 
 | ||||
| 	Property(std::string const& _propname, Changeable::Value when):propname(_propname),change(when) { } | ||||
| 	Property(const std::string &name, Changeable::Value when) | ||||
| 		: propname(name), | ||||
| 		  value(), | ||||
| 		  suggested_values{}, | ||||
| 		  default_value(), | ||||
| 		  change(when) | ||||
| 	{} | ||||
| 
 | ||||
| 	virtual ~Property() = default; | ||||
| 
 | ||||
| 	void Set_values(const char * const * in); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue