tizen 2.4 release
[framework/web/wrt-commons.git] / modules / core / include / dpl / scope_guard.h
similarity index 97%
rename from modules_mobile/core/include/dpl/scope_guard.h
rename to modules/core/include/dpl/scope_guard.h
index 21a7b0c..3791d63 100644 (file)
@@ -71,9 +71,11 @@ class ScopeGuard
 
   private:
     // FIXME change to noexcept when available
-    void Execute() throw()
+    void Execute()
     {
-        m_function();
+        try {
+            m_function();
+        } catch(...) {}
     }
 
     FunctionType m_function;