summaryrefslogtreecommitdiffstats
path: root/registry
diff options
context:
space:
mode:
Diffstat (limited to 'registry')
-rw-r--r--registry/tools/reg2bin.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/registry/tools/reg2bin.cxx b/registry/tools/reg2bin.cxx
index b45580947e99..be8fead9bdc4 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) {