diff --git a/runtime/js_collator.cpp b/runtime/js_collator.cpp index a39d91e6d14b3e24485af3c189e703b2ca795036..fcda1a6fc697100a8d319a6029da95f680c8cdfe 100644 --- a/runtime/js_collator.cpp +++ b/runtime/js_collator.cpp @@ -22,7 +22,7 @@ namespace panda::ecmascript { // NOLINTNEXTLINE (readability-identifier-naming, fuchsia-statically-constructed-objects) -const PandaString JSCollator::uIcuDataColl = U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "coll"; +const std::string JSCollator::uIcuDataColl = U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "coll"; // NOLINTNEXTLINE(fuchsia-statically-constructed-objects) const std::map JSCollator::caseFirstMap = { {"upper", CaseFirstOption::UPPER}, {"lower", CaseFirstOption::LOWER}, {"false", CaseFirstOption::FALSE_OPTION}}; diff --git a/runtime/js_collator.h b/runtime/js_collator.h index ad2fe653112a2db3b2bd069a511d6e8d622ffb77..8494746ead4bc843d952359af07ebbbbe6d57db6 100644 --- a/runtime/js_collator.h +++ b/runtime/js_collator.h @@ -28,7 +28,7 @@ enum class SensitivityOption : uint8_t { BASE = 0x01, ACCENT, CASE, VARIANT, UND class JSCollator : public JSObject { public: // NOLINTNEXTLINE (readability-identifier-naming, fuchsia-statically-constructed-objects) - static const PandaString uIcuDataColl; + static const std::string uIcuDataColl; static const std::map caseFirstMap;