Skip to content

Commit 1049cea

Browse files
committed
Fixing rename fallout
1 parent a27c9c7 commit 1049cea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/inc/sys_string/impl/platforms/android_java.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,19 @@ namespace sysstr
101101
throw std::runtime_error(desc);
102102
}
103103

104-
static any_string create_buffer(JNIEnv * env, jstring str)
104+
static buffer create_buffer(JNIEnv * env, jstring str)
105105
{
106106
if (!str)
107-
return any_string(nullptr);
107+
return buffer(nullptr);
108108

109109
jsize length = str ? env->GetStringLength(str) : 0;
110110
if (length < 0)
111111
raise_exception_on_jni_error(env, "GetStringLength failed");
112112

113113
if (length == 0)
114-
return any_string();
114+
return buffer();
115115

116-
any_string ret(length);
116+
buffer ret(length);
117117
env->GetStringRegion(str, 0, length, reinterpret_cast<jchar *>(ret.data()));
118118
return ret;
119119
}

lib/inc/sys_string/impl/platforms/emscripten_javascript.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace sysstr
114114
{ super::swap(other); }
115115

116116
private:
117-
static auto create_buffer(emscripten::EM_VAL js_str) -> any_string
117+
static auto create_buffer(emscripten::EM_VAL js_str) -> buffer
118118
{
119119
#pragma clang diagnostic push
120120
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
@@ -125,9 +125,9 @@ namespace sysstr
125125
}, js_str);
126126

127127
if (length == 0)
128-
return any_string();
128+
return buffer();
129129

130-
any_string ret(length);
130+
buffer ret(length);
131131
EM_ASM({
132132
let str = Emval.toValue($0);
133133
let ptr = $1;

0 commit comments

Comments
 (0)