mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 15:27:38 +00:00
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:
parent
3f818deeaa
commit
301333cfed
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue