Source code formating unification
[platform/framework/web/wrt-plugins-common.git] / src / CommonsJavaScript / JSUtils.cpp
index f3248a3..f4c9c95 100644 (file)
 
 namespace WrtDeviceApis {
 namespace CommonsJavaScript {
-
 using namespace WrtDeviceApis::Commons;
 
-
 bool JSUtils::hasProperty(JSStaticValue* properties,
-        JSStringRef name)
+                          JSStringRef name)
 {
     JSStaticValue* property = properties;
     while (property->name) {
@@ -37,9 +35,9 @@ bool JSUtils::hasProperty(JSStaticValue* properties,
 }
 
 JSValueRef JSUtils::getJSProperty(JSContextRef context,
-        JSValueRef jsValue,
-        const std::string &name,
-        JSValueRef *exception)
+                                  JSValueRef jsValue,
+                                  const std::string &name,
+                                  JSValueRef *exception)
 {
     ScopedJSStringRef jsPropName(JSStringCreateWithUTF8CString(name.c_str()));
     Converter converter(context);
@@ -52,8 +50,8 @@ JSValueRef JSUtils::getJSProperty(JSContextRef context,
 }
 
 JSValueRef JSUtils::getJSProperty(JSContextRef context,
-        JSObjectRef object,
-        const std::string& name)
+                                  JSObjectRef object,
+                                  const std::string& name)
 {
     Converter converter(context);
     Try {
@@ -68,14 +66,13 @@ JSValueRef JSUtils::getJSProperty(JSContextRef context,
             }
         }
     }
-    Catch(ConversionException) {
-    }
+    Catch(ConversionException) {}
     return NULL;
 }
 
 JSValueRef JSUtils::getJSPropertyOrUndefined(JSContextRef context,
-        JSObjectRef object,
-        const std::string& name)
+                                             JSObjectRef object,
+                                             const std::string& name)
 {
     Converter converter(context);
     Try {
@@ -84,8 +81,7 @@ JSValueRef JSUtils::getJSPropertyOrUndefined(JSContextRef context,
             return JSObjectGetProperty(context, object, propName.get(), NULL);
         }
     }
-    Catch(ConversionException) {
-    }
+    Catch(ConversionException) {}
     return JSValueMakeUndefined(context);
 }
 } // CommonsJavaScript