Kaydet (Commit) 2523972f authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud Kaydeden (comit) Caolán McNamara

remove a use of OUString::intern()

maIconCache is defined as a std::unordered_map
'interning' a OUString to give to it as a key seems completely
superfluous since no-one will ever use it by address, even less
compare the address.

Change-Id: Iab5d106d7d51fcdfbd0a0dfd50ae28d686b9b2b7
Reviewed-on: https://gerrit.libreoffice.org/15692Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst cfdd89f1
......@@ -181,7 +181,7 @@ bool ImplImageTree::doLoadImage(OUString const & name, OUString const & style, B
}
if (found)
maIconSet[maCurrentStyle].maIconCache[name.intern()] = std::make_pair(localized, bitmap);
maIconSet[maCurrentStyle].maIconCache[name] = std::make_pair(localized, bitmap);
return found;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment