ICU-348 make the tag string a temporary to please gcc (getting the

address of a temporary is dangerous as the compiler may decide to call the
temporary's destructor before calling the function using its address).

X-SVN-Rev: 1079
This commit is contained in:
Yves Arrouye 2000-04-05 23:20:34 +00:00
parent 3f818deeaa
commit 301333cfed

View File

@ -598,8 +598,9 @@ ResourceBundle::getDataForTag(const char *tag,
if(fData[i] != 0) {
UnicodeString t(tag, "");
const ResourceBundleData* s =
(const ResourceBundleData*)uhash_get(fData[i], &UnicodeString(tag, ""));
(const ResourceBundleData*)uhash_get(fData[i], &t);
if(s != 0) {
err = fDataStatus[i]; /* restore the error from the original lookup. */
return s;