[openrtm-commit:00257] r2202 - trunk/OpenRTM-aist/src/lib/rtm

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 7月 19日 (火) 22:11:08 JST


Author: kurihara
Date: 2011-07-19 22:11:08 +0900 (Tue, 19 Jul 2011)
New Revision: 2202

Modified:
   trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp
Log:
The problem without a return keyword has been corrected.

Modified: trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp	2011-07-19 07:15:20 UTC (rev 2201)
+++ trunk/OpenRTM-aist/src/lib/rtm/PeriodicExecutionContext.cpp	2011-07-19 13:11:08 UTC (rev 2202)
@@ -399,7 +399,7 @@
     if (it->_sm.m_sm.isIn(INACTIVE_STATE))
       {
         RTC_TRACE(("The component has been properly deactivated."));
-        RTC::RTC_OK;
+        return RTC::RTC_OK;
       }
     RTC_ERROR(("The component could not be deactivated."));
     return RTC::RTC_ERROR;
@@ -432,7 +432,7 @@
             if (m_comps.at(i)._sm.m_sm.isIn(INACTIVE_STATE))
               {
                 RTC_TRACE(("The component has been properly deactivated."));
-                RTC::RTC_OK;
+                return RTC::RTC_OK;
               }
             RTC_ERROR(("The component could not be deactivated."));
             return RTC::RTC_ERROR;



openrtm-commit メーリングリストの案内