Kaydet (Commit) 6a2440ea authored tarafından jan iversen's avatar jan iversen Kaydeden (comit) Norbert Thiebaud

cid#1338241 removed throw from C function.

Lower level C++ make a throw, this cannot be passed
back in a C function.

Change-Id: I54ace0284d0291d54f53b8947e9f4ffc2e0a56ab
Reviewed-on: https://gerrit.libreoffice.org/19873Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 5ff68447
......@@ -350,7 +350,14 @@ static inline bool loadModule(osl::Module & rModule, const OUString & rBridgeNam
if (!bNeg)
{
bool bModule = cppu::detail::loadModule(rModule, rBridgeName);
bool bModule;
try {
bModule = cppu::detail::loadModule(rModule, rBridgeName);
}
catch(...) {
// convert throw to return false
bModule = false;
}
if (bModule)
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment