mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +01:00
Use c_str() instead of data()
This commit is contained in:
@@ -158,7 +158,7 @@ PluginType Plugin::ParsePluginType(std::string_view type)
|
||||
void Plugin::CheckForLicence(const DukValue& dukLicence, std::string_view pluginName)
|
||||
{
|
||||
if (dukLicence.type() != DukValue::Type::STRING || dukLicence.as_string().empty())
|
||||
log_error("Plugin %s does not specify a licence", std::string(pluginName).data());
|
||||
log_error("Plugin %s does not specify a licence", std::string(pluginName).c_str());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user