[Libreoffice-commits] core.git: registry/tools

Norbert Thiebaud nthiebaud at gmail.com
Mon Feb 4 00:55:12 PST 2013


 registry/tools/reg2bin.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 78fc20485df83f5d468184ed8fca6c267446fdf1
Author: Norbert Thiebaud <nthiebaud at gmail.com>
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) {


More information about the Libreoffice-commits mailing list