Change-Id: I52b7dfbe177b3c67bcc4529d9871736dfd9492db
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
if (!isEngineInitialized)
return;
- int ret = csre_cs_global_deinitialize();
-
- if (ret != CSRE_ERROR_NONE)
- throw std::logic_error("Failed to deinit content screening engine.");
-
- ret = csre_wp_global_deinitialize();
-
- if (ret != CSRE_ERROR_NONE)
- throw std::logic_error("Failed to deinit web protection engine.");
+ csre_cs_global_deinitialize();
+ csre_wp_global_deinitialize();
BOOST_MESSAGE("Deinitialize engines");
}
~ScopedChDir()
{
- if (::chdir(cdbuf) == -1)
- throw std::system_error(errno, std::system_category(),
- std::string(cdbuf) + " chdir failed");
+ ::chdir(cdbuf);
}
private: