clang-tidy: run readability-redundant-string-cstr
This commit is contained in:
parent
26ebcdf9f5
commit
de363f176f
|
@ -62,7 +62,7 @@ static bool loadBios(const char *filename, Archive *child_archive, Archive *pare
|
||||||
|
|
||||||
std::string arch_name(filename);
|
std::string arch_name(filename);
|
||||||
std::string path = get_readonly_data_path(arch_name + ".zip");
|
std::string path = get_readonly_data_path(arch_name + ".zip");
|
||||||
if (!file_exists(path.c_str()))
|
if (!file_exists(path))
|
||||||
path = get_readonly_data_path(arch_name + ".7z");
|
path = get_readonly_data_path(arch_name + ".7z");
|
||||||
DEBUG_LOG(NAOMI, "Loading BIOS from %s", path.c_str());
|
DEBUG_LOG(NAOMI, "Loading BIOS from %s", path.c_str());
|
||||||
std::unique_ptr<Archive> bios_archive(OpenArchive(path.c_str()));
|
std::unique_ptr<Archive> bios_archive(OpenArchive(path.c_str()));
|
||||||
|
|
|
@ -206,7 +206,7 @@ std::shared_ptr<InputMapping> InputMapping::LoadMapping(const char *name)
|
||||||
if (it != loaded_mappings.end())
|
if (it != loaded_mappings.end())
|
||||||
return it->second;
|
return it->second;
|
||||||
|
|
||||||
std::string path = get_readonly_config_path((std::string("mappings/") + name).c_str());
|
std::string path = get_readonly_config_path(std::string("mappings/") + name);
|
||||||
FILE *fp = nowide::fopen(path.c_str(), "r");
|
FILE *fp = nowide::fopen(path.c_str(), "r");
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -225,7 +225,7 @@ bool InputMapping::save(const char *name)
|
||||||
|
|
||||||
std::string path = get_writable_config_path("mappings/");
|
std::string path = get_writable_config_path("mappings/");
|
||||||
make_directory(path);
|
make_directory(path);
|
||||||
path = get_writable_config_path((std::string("mappings/") + name).c_str());
|
path = get_writable_config_path(std::string("mappings/") + name);
|
||||||
FILE *fp = nowide::fopen(path.c_str(), "w");
|
FILE *fp = nowide::fopen(path.c_str(), "w");
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue