From 459c8d0e8153fcf50d9b72e243a62b42d398289c Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Wed, 8 Jul 2015 22:24:54 +0000 Subject: [PATCH] ICU-11761 reslist.cpp force explicit UnicodeString constructors, like other genrb .cpp files X-SVN-Rev: 37655 --- icu4c/source/tools/genrb/reslist.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/icu4c/source/tools/genrb/reslist.cpp b/icu4c/source/tools/genrb/reslist.cpp index 7a3afdaa2d8..1b24863767c 100644 --- a/icu4c/source/tools/genrb/reslist.cpp +++ b/icu4c/source/tools/genrb/reslist.cpp @@ -15,6 +15,16 @@ ******************************************************************************* */ +// Safer use of UnicodeString. +#ifndef UNISTR_FROM_CHAR_EXPLICIT +# define UNISTR_FROM_CHAR_EXPLICIT explicit +#endif + +// Less important, but still a good idea. +#ifndef UNISTR_FROM_STRING_EXPLICIT +# define UNISTR_FROM_STRING_EXPLICIT explicit +#endif + #include #include #include "unicode/localpointer.h" -- 2.40.0