Skip to content

Commit ab25459

Browse files
improved naming
1 parent 412eebc commit ab25459

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/StrType.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public:
3838

3939
static const char *getValue(JSContext *cx, JS::HandleValue str);
4040

41-
static PyObject *processString(JSContext *cx, JS::HandleValue str);
41+
static PyObject *proxyfiString(JSContext *cx, JS::HandleValue str);
4242
};
4343

4444
#endif

src/JSStringProxy.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ void JSStringProxyMethodDefinitions::JSStringProxy_dealloc(JSStringProxy *self)
2424
PyObject *JSStringProxyMethodDefinitions::JSStringProxy_copy_method(JSStringProxy *self) {
2525
JS::RootedString selfString(GLOBAL_CX, ((JSStringProxy *)self)->jsString->toString());
2626
JS::RootedValue selfStringValue(GLOBAL_CX, JS::StringValue(selfString));
27-
return StrType::processString(GLOBAL_CX, selfStringValue);
27+
return StrType::proxyfiString(GLOBAL_CX, selfStringValue);
2828
}

src/StrType.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static PyObject *asUCS4(PyObject *pyString) {
9595
return ret;
9696
}
9797

98-
PyObject *StrType::processString(JSContext *cx, JS::HandleValue strVal) {
98+
PyObject *StrType::proxyfiString(JSContext *cx, JS::HandleValue strVal) {
9999
JS::RootedString str(cx, strVal.toString());
100100
JSLinearString *lstr = JS_EnsureLinearString(cx, str);
101101
JS::AutoCheckCannotGC nogc;
@@ -189,11 +189,11 @@ PyObject *StrType::getPyObject(JSContext *cx, JS::HandleValue str) {
189189
}
190190
}
191191

192-
return processString(cx, str);
192+
return proxyfiString(cx, str);
193193
}
194194

195195
const char *StrType::getValue(JSContext *cx, JS::HandleValue str) {
196-
PyObject *pyString = processString(cx, str);
196+
PyObject *pyString = proxyfiString(cx, str);
197197
const char *value = PyUnicode_AsUTF8(pyString);
198198
Py_DECREF(pyString);
199199
return value;

0 commit comments

Comments
 (0)