1
0
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:
skdltmxn
2021-01-07 04:28:19 +09:00
parent c093a50f3f
commit e1cfa8693f
4 changed files with 4 additions and 4 deletions

View File

@@ -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