diff options
Diffstat (limited to 'unoidl/source/sourcefileprovider.cxx')
-rw-r--r-- | unoidl/source/sourcefileprovider.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unoidl/source/sourcefileprovider.cxx b/unoidl/source/sourcefileprovider.cxx index 3348d1c5e8e0..c73142dc83e3 100644 --- a/unoidl/source/sourcefileprovider.cxx +++ b/unoidl/source/sourcefileprovider.cxx @@ -100,9 +100,8 @@ SourceFileProvider::SourceFileProvider( if (k == map->end()) { k = map->insert(std::make_pair(id, new Module)).first; } - Module * mod = dynamic_cast< Module * >(k->second.get()); - assert(mod != 0); - map = &mod->map; + Module& mod = dynamic_cast<Module&>(*k->second.get()); + map = &mod.map; } } } |