]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/genrb/reslist.h
ICU-62135.0.1.tar.gz
[apple/icu.git] / icuSources / tools / genrb / reslist.h
index 032c0c248cf0c59954cac1adafdfee6c94339bc3..ee1ecf3d05ff00afeaf73b5170e42a524a96664a 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 *******************************************************************************
 *
@@ -302,7 +304,7 @@ public:
     StringBaseResource(int8_t type, const UChar *value, int32_t len, UErrorCode &errorCode);
     virtual ~StringBaseResource();
 
-    const UChar *getBuffer() const { return fString.getBuffer(); }
+    const UChar *getBuffer() const { return icu::toUCharPtr(fString.getBuffer()); }
     int32_t length() const { return fString.length(); }
 
     virtual void handlePreWrite(uint32_t *byteOffset);