summaryrefslogtreecommitdiffstats
path: root/icu/src/main/native/NativeBreakIterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'icu/src/main/native/NativeBreakIterator.cpp')
-rw-r--r--icu/src/main/native/NativeBreakIterator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/icu/src/main/native/NativeBreakIterator.cpp b/icu/src/main/native/NativeBreakIterator.cpp
index 85ada2d..0be7630 100644
--- a/icu/src/main/native/NativeBreakIterator.cpp
+++ b/icu/src/main/native/NativeBreakIterator.cpp
@@ -26,10 +26,10 @@
static jint getIterator(JNIEnv* env, jstring locale, UBreakIteratorType type) {
UErrorCode status = U_ZERO_ERROR;
ScopedUtfChars localeChars(env, locale);
- if (!localeChars.data()) {
+ if (!localeChars.c_str()) {
return 0;
}
- UBreakIterator* it = ubrk_open(type, localeChars.data(), NULL, 0, &status);
+ UBreakIterator* it = ubrk_open(type, localeChars.c_str(), NULL, 0, &status);
icu4jni_error(env, status);
return reinterpret_cast<uintptr_t>(it);
}