MXS-2304 Remove remaining uses of config_get_string() from module code
The function returns a pointer to an internal string and should not be used.
This commit is contained in:
@ -1909,11 +1909,6 @@ bool config_get_compiled_regexes(const MXS_CONFIG_PARAMETER* params,
|
||||
}
|
||||
|
||||
string MXS_CONFIG_PARAMETER::get_string(const std::string& key) const
|
||||
{
|
||||
return get_c_str(key);
|
||||
}
|
||||
|
||||
const char* MXS_CONFIG_PARAMETER::get_c_str(const std::string& key) const
|
||||
{
|
||||
return config_get_string(this, key.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user