registry/tools/reg2bin.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 78fc20485df83f5d468184ed8fca6c267446fdf1 Author: Norbert Thiebaud <[email protected]> Date: Mon Feb 4 02:54:33 2013 -0600 WaE unused variable Change-Id: I36a51ad53e1992a32c59defa8847555caccd035f diff --git a/registry/tools/reg2bin.cxx b/registry/tools/reg2bin.cxx index b45580947..be8fead 100644 --- a/registry/tools/reg2bin.cxx +++ b/registry/tools/reg2bin.cxx @@ -191,8 +191,10 @@ void insert( std::map< rtl::OUString, Item > * map) { assert(map != 0); - bool b = map->insert(std::make_pair(name, item)).second; - assert(b); + if(!map->insert(std::make_pair(name, item)).second) + { + assert(false); + } } typereg::Reader getReader(RegistryKey & key, std::vector< char > * buffer) { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
