diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-04 02:54:33 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-04 02:54:49 -0600 |
commit | 78fc20485df83f5d468184ed8fca6c267446fdf1 (patch) | |
tree | 1a3386e7fbad3fc7d94390694aa4c9deec48d9e9 /registry | |
parent | b48948201486c5367b5ff313cf49b56b4fa366ed (diff) |
WaE unused variable
Change-Id: I36a51ad53e1992a32c59defa8847555caccd035f
Diffstat (limited to 'registry')
-rw-r--r-- | registry/tools/reg2bin.cxx | 6 |
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) { |