From: Younies Date: Fri, 17 Jan 2020 14:11:19 +0000 (+0100) Subject: fix warnings of comparing raw 16 bit string pointers X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5615bed9010e6cc227e12a856cbef7a41cfb17fa;p=icu fix warnings of comparing raw 16 bit string pointers --- diff --git a/icu4c/source/test/intltest/unitstest.cpp b/icu4c/source/test/intltest/unitstest.cpp index 0adf5c7dc52..05a02f73cbf 100644 --- a/icu4c/source/test/intltest/unitstest.cpp +++ b/icu4c/source/test/intltest/unitstest.cpp @@ -5,9 +5,9 @@ #if !UCONFIG_NO_FORMATTING -#include #include "intltest.h" +#include "unicode/unistr.h" class UnitsTest : public IntlTest { public: @@ -38,11 +38,11 @@ void UnitsTest::runIndexedTest(int32_t index, UBool exec, const char *&name, cha } // Just for testing quick conversion ability. -double testConvert(const char16_t *source, const char16_t *target, double input) { +double testConvert(UnicodeString source, UnicodeString target, double input) { if (source == u"meter" && target == u"foot" && input == 1.0) return 3.28084; - if (source == u"kilometer" && target == u"foot" && input == 1.0) + if ( source == u"kilometer" && target == u"foot" && input == 1.0) return 328.084; return -1;