[openrtm-commit:02046] r2776 - trunk/OpenRTM-aist/src/lib/rtm

openrtm @ openrtm.org openrtm @ openrtm.org
2016年 10月 12日 (水) 23:50:23 JST


Author: n-ando
Date: 2016-10-12 23:50:23 +0900 (Wed, 12 Oct 2016)
New Revision: 2776

Modified:
   trunk/OpenRTM-aist/src/lib/rtm/RTObject.cpp
Log:
[compat,RELENG_1_2] Indentation has been modified. refs #3656

Modified: trunk/OpenRTM-aist/src/lib/rtm/RTObject.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/RTObject.cpp	2016-10-12 14:01:09 UTC (rev 2775)
+++ trunk/OpenRTM-aist/src/lib/rtm/RTObject.cpp	2016-10-12 14:50:23 UTC (rev 2776)
@@ -2739,70 +2739,64 @@
       }
 
 
-	if (m_eclist.empty())
-	{
+    if (m_eclist.empty())
+      {
+        coil::Properties default_prop;
+        default_prop.setDefaults(default_config);
+        RTC::ExecutionContextBase* ec = NULL;
+        ec = RTC::ExecutionContextFactory::instance().
+          createObject(default_prop["exec_cxt.periodic.type"].c_str());
+        if (ec == NULL)
+          {
+            RTC_ERROR(("EC (%s) creation failed.",
+                       default_prop["exec_cxt.periodic.type"].c_str()));
+            RTC_DEBUG(("Available EC list: %s",
+                       coil::flatten(avail_ec).c_str()));
+            return RTC::RTC_ERROR;
+          }
 
-		coil::Properties default_prop;
-		default_prop.setDefaults(default_config);
-		RTC::ExecutionContextBase* ec = NULL;
-		ec = RTC::ExecutionContextFactory::
-			instance().createObject(default_prop["exec_cxt.periodic.type"].c_str());
-		if (ec == NULL)
-		{
-			RTC_ERROR(("EC (%s) creation failed.", default_prop["exec_cxt.periodic.type"].c_str()));
-			RTC_DEBUG(("Available EC list: %s",
-				coil::flatten(avail_ec).c_str()));
-			
-			return RTC::RTC_ERROR;
-		}
+        coil::Properties default_opts;
+        coil::Properties* prop = default_prop.findNode("exec_cxt.periodic");
 
-		coil::Properties default_opts;
+        if (prop == NULL)
+          {
+            RTC_WARN(("No global EC options found."));
+            return RTC::RTC_ERROR;
+          }
 
-		coil::Properties* prop = default_prop.findNode("exec_cxt.periodic");
-		
-		if (prop == NULL)
-		{
-			RTC_WARN(("No global EC options found."));
-			return RTC::RTC_ERROR;
-		}
+        default_opts << *prop;
+        const char* inherited_opts[] =
+          {
+            "sync_transition",
+            "sync_activation",
+            "sync_deactivation",
+            "sync_reset",
+            "transition_timeout",
+            "activation_timeout",
+            "deactivation_timeout",
+            "reset_timeout",
+            ""
+          };
 
-		default_opts << *prop;
-		
-		const char* inherited_opts[] =
-		{
-			"sync_transition",
-			"sync_activation",
-			"sync_deactivation",
-			"sync_reset",
-			"transition_timeout",
-			"activation_timeout",
-			"deactivation_timeout",
-			"reset_timeout",
-			""
-		};
-
-		coil::Properties* p = default_prop.findNode("exec_cxt");
-		if (p == NULL)
-		{
-			RTC_WARN(("No exec_cxt option found."));
-			return RTC::RTC_ERROR;
-		}
-		RTC_DEBUG(("Copying inherited EC options."));
-		for (size_t i(0); inherited_opts[i][0] != '\0'; ++i)
-		{
-			if ((*p).findNode(inherited_opts[i]) != NULL)
-			{
-				RTC_PARANOID(("Option %s exists.", inherited_opts[i]));
-				default_opts[inherited_opts[i]] = (*p)[inherited_opts[i]];
-			}
-		}
-		
-
-		
-		ec->init(default_opts);
-		m_eclist.push_back(ec);
-		ec->bindComponent(this);
-	}
+        coil::Properties* p = default_prop.findNode("exec_cxt");
+        if (p == NULL)
+          {
+            RTC_WARN(("No exec_cxt option found."));
+            return RTC::RTC_ERROR;
+          }
+        RTC_DEBUG(("Copying inherited EC options."));
+        for (size_t i(0); inherited_opts[i][0] != '\0'; ++i)
+          {
+            if ((*p).findNode(inherited_opts[i]) != NULL)
+              {
+                RTC_PARANOID(("Option %s exists.", inherited_opts[i]));
+                default_opts[inherited_opts[i]] = (*p)[inherited_opts[i]];
+              }
+          }
+        ec->init(default_opts);
+        m_eclist.push_back(ec);
+        ec->bindComponent(this);
+      }
     return ret;
   }
 



More information about the openrtm-commit mailing list