summaryrefslogtreecommitdiff
path: root/fxjs/cjs_icon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_icon.cpp')
-rw-r--r--fxjs/cjs_icon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_icon.cpp b/fxjs/cjs_icon.cpp
index 9cf20feb73..3c293ea969 100644
--- a/fxjs/cjs_icon.cpp
+++ b/fxjs/cjs_icon.cpp
@@ -30,7 +30,7 @@ CJS_Icon::CJS_Icon(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
CJS_Icon::~CJS_Icon() = default;
CJS_Return CJS_Icon::get_name(CJS_Runtime* pRuntime) {
- return CJS_Return(pRuntime->NewString(m_swIconName.c_str()));
+ return CJS_Return(pRuntime->NewString(m_swIconName.AsStringView()));
}
CJS_Return CJS_Icon::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) {