1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[c++] initialize string with () not {}. Refs #253

This commit is contained in:
Witold Filipczyk 2023-09-12 18:01:19 +02:00
parent aca4e7e517
commit 843af9e300
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ attr_clear_map_str(void *m)
static const std::vector<std::string>
explode(const std::string& s, const char& c)
{
std::string buff{""};
std::string buff("");
std::vector<std::string> v;
bool found = false;

View File

@ -330,7 +330,7 @@ attr_erase_from_map_rev(void *m, JSValueConst value)
static const std::vector<std::string>
explode(const std::string& s, const char& c)
{
std::string buff{""};
std::string buff("");
std::vector<std::string> v;
bool found = false;