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
@ -598,8 +598,9 @@ ResourceBundle::getDataForTag(const char *tag,
|
|||||||
|
|
||||||
|
|
||||||
if(fData[i] != 0) {
|
if(fData[i] != 0) {
|
||||||
|
UnicodeString t(tag, "");
|
||||||
const ResourceBundleData* s =
|
const ResourceBundleData* s =
|
||||||
(const ResourceBundleData*)uhash_get(fData[i], &UnicodeString(tag, ""));
|
(const ResourceBundleData*)uhash_get(fData[i], &t);
|
||||||
if(s != 0) {
|
if(s != 0) {
|
||||||
err = fDataStatus[i]; /* restore the error from the original lookup. */
|
err = fDataStatus[i]; /* restore the error from the original lookup. */
|
||||||
return s;
|
return s;
|
||||||
|
Loading…
Reference in New Issue
Block a user