merge with master
[platform/framework/web/wrt-plugins-common.git] / src / plugin-loading / plugin_iframe_support.cpp
index 311d847..2e1c8c6 100644 (file)
@@ -30,28 +30,29 @@ void IframesSupport::registerDeclaration(
     LogDebug("Registration iframes-supported plugins " <<
              declaration->getName());
 
-    if(declaration->getParentName().find('.') != std::string::npos)
-    {
+    if (declaration->getParentName().find('.') != std::string::npos) {
         LogWarning("The object will not be loaded to iframes");
         return;
     }
     m_iframesObjects.push_back(declaration);
 }
 
-void IframesSupport::registerIframe(const JSObjectPtr& iframe){
+void IframesSupport::registerIframe(const JSObjectPtr& iframe)
+{
     LogDebug("LoadedIframes size: " << m_loadedIframes.size() );
 
     m_loadedIframes.insert(iframe);
 }
 
-void IframesSupport::unregisterIframe(const JSObjectPtr& iframe){
+void IframesSupport::unregisterIframe(const JSObjectPtr& iframe)
+{
     LogDebug("LoadedIframes size: " << m_loadedIframes.size() );
 
     auto it_loaded = std::find_if(m_loadedIframes.begin(),
-            m_loadedIframes.end(),
-            std::bind2nd(EqualToJSObjectPtr(), iframe));
+                                  m_loadedIframes.end(),
+                                  std::bind2nd(EqualToJSObjectPtr(), iframe));
     //object not found, so thats the new iframe
-    if(it_loaded == m_loadedIframes.end()){
+    if (it_loaded == m_loadedIframes.end()) {
         LogDebug("Nothing to unregister");
         return;
     }