From 843af9e300910cde9e17c02ed797ea84e93356b7 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 12 Sep 2023 18:01:19 +0200 Subject: [PATCH] [c++] initialize string with () not {}. Refs #253 --- src/ecmascript/libdom/mujs/mapa.cpp | 2 +- src/ecmascript/libdom/quickjs/mapa.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecmascript/libdom/mujs/mapa.cpp b/src/ecmascript/libdom/mujs/mapa.cpp index 9a2d5292..75f313e4 100644 --- a/src/ecmascript/libdom/mujs/mapa.cpp +++ b/src/ecmascript/libdom/mujs/mapa.cpp @@ -123,7 +123,7 @@ attr_clear_map_str(void *m) static const std::vector explode(const std::string& s, const char& c) { - std::string buff{""}; + std::string buff(""); std::vector v; bool found = false; diff --git a/src/ecmascript/libdom/quickjs/mapa.cpp b/src/ecmascript/libdom/quickjs/mapa.cpp index fc43909a..d3ff8030 100644 --- a/src/ecmascript/libdom/quickjs/mapa.cpp +++ b/src/ecmascript/libdom/quickjs/mapa.cpp @@ -330,7 +330,7 @@ attr_erase_from_map_rev(void *m, JSValueConst value) static const std::vector explode(const std::string& s, const char& c) { - std::string buff{""}; + std::string buff(""); std::vector v; bool found = false;