diff options
author | Max Horn | 2009-09-06 12:59:07 +0000 |
---|---|---|
committer | Max Horn | 2009-09-06 12:59:07 +0000 |
commit | ae16d496b9f2b245167a8af3fdab3e124364047d (patch) | |
tree | 821b9ae1da031348b65aa430018f58e83e640262 /gui/ScrollBarWidget.cpp | |
parent | b51e9988e61733b5675623a598afc9ff436caf38 (diff) | |
download | scummvm-rg350-ae16d496b9f2b245167a8af3fdab3e124364047d.tar.gz scummvm-rg350-ae16d496b9f2b245167a8af3fdab3e124364047d.tar.bz2 scummvm-rg350-ae16d496b9f2b245167a8af3fdab3e124364047d.zip |
COMMON: HashMap::getVal now allows specifying a default value.
A new variant of HashMap::getVal with a second 'default value' parameter
has been added. This helps avoid many contains() + getVal() combos
(which incur double lookup penalty), and is much lighter than using
find() (which has to create an iterator).
svn-id: r43983
Diffstat (limited to 'gui/ScrollBarWidget.cpp')
0 files changed, 0 insertions, 0 deletions