mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: GRFParameterInfo no longer needs deep-copy constructor.
This commit is contained in:
parent
fd26658558
commit
c51a7f629e
|
@ -208,26 +208,6 @@ GRFParameterInfo::GRFParameterInfo(uint nr) :
|
|||
complete_labels(false)
|
||||
{}
|
||||
|
||||
/**
|
||||
* Create a new GRFParameterInfo object that is a deep copy of an existing
|
||||
* parameter info object.
|
||||
* @param info The GRFParameterInfo object to make a copy of.
|
||||
*/
|
||||
GRFParameterInfo::GRFParameterInfo(GRFParameterInfo &info) :
|
||||
name(info.name),
|
||||
desc(info.desc),
|
||||
type(info.type),
|
||||
min_value(info.min_value),
|
||||
max_value(info.max_value),
|
||||
def_value(info.def_value),
|
||||
param_nr(info.param_nr),
|
||||
first_bit(info.first_bit),
|
||||
num_bit(info.num_bit),
|
||||
value_names(info.value_names),
|
||||
complete_labels(info.complete_labels)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of this user-changeable parameter from the given config.
|
||||
* @param config The GRFConfig to get the value from.
|
||||
|
|
|
@ -132,7 +132,6 @@ enum GRFParameterType {
|
|||
/** Information about one grf parameter. */
|
||||
struct GRFParameterInfo {
|
||||
GRFParameterInfo(uint nr);
|
||||
GRFParameterInfo(GRFParameterInfo &info);
|
||||
GRFTextList name; ///< The name of this parameter
|
||||
GRFTextList desc; ///< The description of this parameter
|
||||
GRFParameterType type; ///< The type of this parameter
|
||||
|
|
Loading…
Reference in New Issue