[openrtm-commit:02213] r2830 - in branches/DEV_IQ_2016/OpenRTM-aist/src/lib: coil/ace/coil coil/common coil/posix/coil coil/win32/coil rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 1月 13日 (金) 15:25:14 JST
Author: sec_fukai
Date: 2017-01-13 15:25:14 +0900 (Fri, 13 Jan 2017)
New Revision: 2830
Modified:
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Condition.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Mutex.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Guard.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Listener.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/PeriodicTask.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Properties.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeMeasure.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeValue.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Timer.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Condition.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/DynamicLib.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Mutex.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/UUID.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/Condition.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/DynamicLib.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/UUID.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/BufferBase.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ConfigAdmin.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaNaming.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaPort.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/DataFlowComponentBase.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextBase.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextProfile.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Factory.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortConsumer.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortProvider.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Manager.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerServant.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ModuleManager.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NamingManager.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortConsumer.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortProvider.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.cpp
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.cpp
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortBase.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortProfileHelper.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RTObject.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RingBuffer.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoConfiguration.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoOrganization.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.cpp
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/StateMachine.h
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.h
Log:
3791[compat,->DEV_IQ_2016] Add explicit to single param constructor. refs #3791
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Condition.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Condition.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Condition.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -39,7 +39,7 @@
class Condition
{
public:
- Condition(Mutex& mutex)
+ explicit Condition(Mutex& mutex)
: m_mutex(mutex)
{
ACE_OS::cond_init(&m_cond, 0);
@@ -79,7 +79,7 @@
}
private:
- Condition(const Mutex&);
+ explicit Condition(const Mutex&);
Condition& operator=(const Mutex &);
ACE_cond_t m_cond;
Mutex& m_mutex;
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Mutex.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Mutex.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/ace/coil/Mutex.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -36,7 +36,7 @@
class Mutex
{
public:
- Mutex(const char* naem = 0)
+ explicit Mutex(const char* naem = 0)
{
ACE_OS::thread_mutex_init(&mutex_, 0);
}
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Guard.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Guard.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Guard.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -61,7 +61,7 @@
*
* @endif
*/
- Guard(M& mutex) : m_mutex(mutex)
+ explicit Guard(M& mutex) : m_mutex(mutex)
{
m_mutex.lock();
}
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Listener.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Listener.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Listener.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -204,7 +204,7 @@
*
* @endif
*/
- ListenerFunc(CallbackFunc cbf)
+ explicit ListenerFunc(CallbackFunc cbf)
: m_cbf(cbf)
{
}
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/PeriodicTask.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/PeriodicTask.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/PeriodicTask.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -390,7 +390,7 @@
class alive_t
{
public:
- alive_t(bool val) : value(val) {}
+ explicit alive_t(bool val) : value(val) {}
bool value;
coil::Mutex mutex;
};
@@ -413,7 +413,7 @@
*/
struct suspend_t
{
- suspend_t(bool sus) : suspend(sus), mutex(), cond(mutex) {}
+ explicit suspend_t(bool sus) : suspend(sus), mutex(), cond(mutex) {}
bool suspend;
coil::Mutex mutex;
coil::Condition<coil::Mutex> cond;
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Properties.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Properties.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Properties.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -147,7 +147,7 @@
*
* @endif
*/
- Properties(std::map<std::string, std::string>& defaults);
+ explicit Properties(std::map<std::string, std::string>& defaults);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeMeasure.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeMeasure.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeMeasure.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -83,7 +83,7 @@
*
* @endif
*/
- TimeMeasure(int buflen = 100);
+ explicit TimeMeasure(int buflen = 100);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeValue.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeValue.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/TimeValue.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -86,7 +86,7 @@
*
* @endif
*/
- TimeValue(double timeval);
+ explicit TimeValue(double timeval);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Timer.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Timer.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/common/Timer.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -73,7 +73,7 @@
*
* @endif
*/
- Timer(TimeValue& interval);
+ explicit Timer(TimeValue& interval);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Condition.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Condition.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Condition.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -60,7 +60,7 @@
*
* @endif
*/
- Condition(M& mutex)
+ explicit Condition(M& mutex)
: m_mutex(mutex)
{
::pthread_cond_init(&m_cond, 0);
@@ -191,7 +191,7 @@
}
private:
- Condition(const M&);
+ explicit Condition(const M&);
Condition& operator=(const M &);
pthread_cond_t m_cond;
M& m_mutex;
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/DynamicLib.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/DynamicLib.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/DynamicLib.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -68,7 +68,7 @@
*
* @endif
*/
- DynamicLib(int close_handle_on_destruction = 1);
+ explicit DynamicLib(int close_handle_on_destruction = 1);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Mutex.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Mutex.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/Mutex.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -59,7 +59,7 @@
*
* @endif
*/
- Mutex(const char * const name = 0)
+ explicit Mutex(const char * const name = 0)
{
::pthread_mutex_init(&mutex_, 0);
}
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/UUID.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/UUID.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/posix/coil/UUID.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -30,7 +30,7 @@
{
public:
UUID();
- UUID(const uuid_t& uuid);
+ explicit UUID(const uuid_t& uuid);
~UUID();
const char* to_string();
private:
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/Condition.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/Condition.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/Condition.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -99,7 +99,7 @@
*
* @endif
*/
- Condition(M& mutex)
+ explicit Condition(M& mutex)
: m_mutex(mutex)
{
pthread_cond_init(&m_cond);
@@ -388,7 +388,7 @@
return 0;
}
- Condition(const Mutex&);
+ explicit Condition(const Mutex&);
Condition& operator=(const Mutex &);
coil::pthread_cond_t m_cond;
M& m_mutex;
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/DynamicLib.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/DynamicLib.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/DynamicLib.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -78,7 +78,7 @@
*
* @endif
*/
- DynamicLib(int close_handle_on_destruction = 1);
+ explicit DynamicLib(int close_handle_on_destruction = 1);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/UUID.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/UUID.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/coil/win32/coil/UUID.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -63,7 +63,7 @@
*
* @endif
*/
- UUID(const uuid_t& uuid);
+ explicit UUID(const uuid_t& uuid);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/BufferBase.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/BufferBase.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/BufferBase.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -574,7 +574,7 @@
*
* @endif
*/
- NullBuffer(long int size = 1)
+ explicit NullBuffer(long int size = 1)
: m_length(1)
{
}
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ConfigAdmin.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ConfigAdmin.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ConfigAdmin.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -629,7 +629,7 @@
*
* @endif
*/
- ConfigAdmin(coil::Properties& prop);
+ explicit ConfigAdmin(coil::Properties& prop);
/*!
* @if jp
@@ -1545,7 +1545,7 @@
struct find_conf
{
std::string m_name;
- find_conf(const char* name) : m_name(name) {};
+ explicit find_conf(const char* name) : m_name(name) {};
bool operator()(ConfigBase* conf)
{
if (conf == 0) { return false; }
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaNaming.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaNaming.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaNaming.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -104,7 +104,7 @@
*
* @endif
*/
- CorbaNaming(CORBA::ORB_ptr orb);
+ explicit CorbaNaming(CORBA::ORB_ptr orb);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaPort.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaPort.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/CorbaPort.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -647,7 +647,7 @@
*
* @endif
*/
- CorbaPort(const char* name);
+ explicit CorbaPort(const char* name);
/*!
* @if jp
@@ -1370,7 +1370,7 @@
*/
struct unsubscribe
{
- unsubscribe(CorbaConsumerList& consumers)
+ explicit unsubscribe(CorbaConsumerList& consumers)
: m_consumers(consumers)
{
}
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/DataFlowComponentBase.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/DataFlowComponentBase.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/DataFlowComponentBase.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -87,7 +87,7 @@
*
* @endif
*/
- DataFlowComponentBase(Manager* manager);
+ explicit DataFlowComponentBase(Manager* manager);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextBase.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextBase.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextBase.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -382,7 +382,7 @@
*
* @endif
*/
- ExecutionContextBase(const char* name);
+ explicit ExecutionContextBase(const char* name);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextProfile.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextProfile.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ExecutionContextProfile.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -76,7 +76,7 @@
*
* @endif
*/
- ExecutionContextProfile(RTC::ExecutionKind kind = RTC::PERIODIC);
+ explicit ExecutionContextProfile(RTC::ExecutionKind kind = RTC::PERIODIC);
/*!
* @if jp
@@ -568,7 +568,7 @@
{
RTC::RTObject_var m_comp;
public:
- find_participant(RTC::RTObject_ptr comp)
+ explicit find_participant(RTC::RTObject_ptr comp)
: m_comp(RTC::RTObject::_duplicate(comp)) {}
bool operator()(RTC::RTObject_ptr comp)
{
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Factory.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Factory.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Factory.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -137,7 +137,7 @@
*
* @endif
*/
- FactoryBase(const coil::Properties& profile);
+ explicit FactoryBase(const coil::Properties& profile);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortConsumer.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortConsumer.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortConsumer.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -224,7 +224,7 @@
*/
struct publishInterfaceProfileFunc
{
- publishInterfaceProfileFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
+ explicit publishInterfaceProfileFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
void operator()(InPortConsumer* consumer)
{
consumer->publishInterfaceProfile(m_prop);
@@ -241,7 +241,7 @@
*/
struct subscribeInterfaceFunc
{
- subscribeInterfaceFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
+ explicit subscribeInterfaceFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
bool operator()(InPortConsumer* consumer)
{
return consumer->subscribeInterface(m_prop);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortProvider.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortProvider.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/InPortProvider.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -485,7 +485,7 @@
*/
struct publishInterfaceProfileFunc
{
- publishInterfaceProfileFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
+ explicit publishInterfaceProfileFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
void operator()(InPortProvider* provider)
{
provider->publishInterfaceProfile(m_prop);
@@ -502,7 +502,7 @@
*/
struct publishInterfaceFunc
{
- publishInterfaceFunc(SDOPackage::NVList& prop)
+ explicit publishInterfaceFunc(SDOPackage::NVList& prop)
: m_prop(prop), provider_(0) {}
void operator()(InPortProvider* provider)
{
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Manager.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Manager.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/Manager.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -1862,9 +1862,9 @@
// ObjectManager へ渡す述語クラス
struct InstanceName
{
- InstanceName(RTObject_impl* comp);
- InstanceName(const char* name);
- InstanceName(const std::string name);
+ explicit InstanceName(RTObject_impl* comp);
+ explicit InstanceName(const char* name);
+ explicit InstanceName(const std::string name);
bool operator()(RTObject_impl* comp);
std::string m_name;
};
@@ -1887,18 +1887,18 @@
class FactoryPredicate
{
public:
- FactoryPredicate(const char* imple_id)
+ explicit FactoryPredicate(const char* imple_id)
: m_vendor(""), m_category(""), m_impleid(imple_id), m_version("")
{
}
- FactoryPredicate(const coil::Properties& prop)
+ explicit FactoryPredicate(const coil::Properties& prop)
: m_vendor(prop["vendor"]),
m_category(prop["category"]),
m_impleid(prop["implementation_id"]),
m_version(prop["version"])
{
}
- FactoryPredicate(FactoryBase* factory)
+ explicit FactoryPredicate(FactoryBase* factory)
: m_vendor(factory->profile()["vendor"]),
m_category(factory->profile()["category"]),
m_impleid(factory->profile()["implementation_id"]),
@@ -1934,7 +1934,7 @@
{
coil::Properties& m_prop;
public:
- ModulePredicate(coil::Properties& prop)
+ explicit ModulePredicate(coil::Properties& prop)
: m_prop(prop)
{
}
@@ -1979,8 +1979,8 @@
// ECファクトリへ渡す述語クラス
struct ECFactoryPredicate
{
- ECFactoryPredicate(const char* name) : m_name(name){};
- ECFactoryPredicate(ECFactoryBase* factory)
+ explicit ECFactoryPredicate(const char* name) : m_name(name){};
+ explicit ECFactoryPredicate(ECFactoryBase* factory)
: m_name(factory->name()) {};
bool operator()(ECFactoryBase* factory)
{
@@ -2059,7 +2059,7 @@
*
* @endif
*/
- OrbRunner(CORBA::ORB_ptr orb) : m_pORB(orb)
+ explicit OrbRunner(CORBA::ORB_ptr orb) : m_pORB(orb)
{
open(0);
};
@@ -2195,7 +2195,7 @@
*
* @endif
*/
- Terminator(Manager* manager) : m_manager(manager) {};
+ explicit Terminator(Manager* manager) : m_manager(manager) {};
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerServant.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerServant.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ManagerServant.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -660,7 +660,7 @@
{
RTM::Manager_var m_mgr;
public:
- is_equiv(RTM::Manager_ptr mgr)
+ explicit is_equiv(RTM::Manager_ptr mgr)
: m_mgr(RTM::Manager::_duplicate(mgr)) {}
bool operator()(RTM::Manager_ptr mgr)
{
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ModuleManager.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ModuleManager.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/ModuleManager.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -96,7 +96,7 @@
*
* @endif
*/
- ModuleManager(coil::Properties& prop);
+ explicit ModuleManager(coil::Properties& prop);
/*!
* @if jp
@@ -120,7 +120,7 @@
*/
struct Error
{
- Error(const std::string& _reason)
+ explicit Error(const std::string& _reason)
: reason(_reason) {}
std::string reason;
};
@@ -135,7 +135,7 @@
*/
struct NotFound
{
- NotFound(const std::string& _name)
+ explicit NotFound(const std::string& _name)
: name(_name) {}
std::string name;
};
@@ -151,7 +151,7 @@
struct FileNotFound
: public NotFound
{
- FileNotFound(const std::string& _name)
+ explicit FileNotFound(const std::string& _name)
: NotFound(_name) {}
};
@@ -166,7 +166,7 @@
struct ModuleNotFound
: public NotFound
{
- ModuleNotFound(const std::string& _name)
+ explicit ModuleNotFound(const std::string& _name)
: NotFound(_name) {}
};
@@ -181,7 +181,7 @@
struct SymbolNotFound
: public NotFound
{
- SymbolNotFound(const std::string& _name)
+ explicit SymbolNotFound(const std::string& _name)
: NotFound(_name) {}
};
@@ -196,7 +196,7 @@
struct NotAllowedOperation
: public Error
{
- NotAllowedOperation(const std::string& _reason)
+ explicit NotAllowedOperation(const std::string& _reason)
: Error(_reason) {}
};
@@ -211,7 +211,7 @@
struct InvalidArguments
: public Error
{
- InvalidArguments(const std::string& _reason)
+ explicit InvalidArguments(const std::string& _reason)
: Error(_reason) {}
};
@@ -226,7 +226,7 @@
struct InvalidOperation
: public Error
{
- InvalidOperation(const std::string& _reason)
+ explicit InvalidOperation(const std::string& _reason)
: Error(_reason) {}
};
typedef void (*ModuleInitFunc)(Manager*);
@@ -688,8 +688,8 @@
{
std::string m_filepath;
public:
- DllPred(const char* filepath) : m_filepath(filepath) {}
- DllPred(const DLLEntity* dll) : m_filepath(dll->properties["file_path"]) {}
+ explicit DllPred(const char* filepath) : m_filepath(filepath) {}
+ explicit DllPred(const DLLEntity* dll) : m_filepath(dll->properties["file_path"]) {}
bool operator()(DLLEntity* dllentity)
{
return m_filepath == dllentity->properties.getProperty("file_path");
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NVUtil.cpp 2017-01-13 06:25:14 UTC (rev 2830)
@@ -193,7 +193,7 @@
*/
struct nv_find
{
- nv_find(const char* name) : m_name(name) {};
+ explicit nv_find(const char* name) : m_name(name) {};
bool operator()(const SDOPackage::NameValue& nv)
{
std::string name(nv.name);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NamingManager.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NamingManager.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/NamingManager.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -402,7 +402,7 @@
*
* @endif
*/
- NamingManager(Manager* manager);
+ explicit NamingManager(Manager* manager);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortConsumer.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortConsumer.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortConsumer.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -378,7 +378,7 @@
*/
struct subscribe
{
- subscribe(const SDOPackage::NVList& prop) : m_prop(prop) {}
+ explicit subscribe(const SDOPackage::NVList& prop) : m_prop(prop) {}
void operator()(OutPortConsumer* consumer)
{
consumer->subscribeInterface(m_prop);
@@ -395,7 +395,7 @@
*/
struct unsubscribe
{
- unsubscribe(const SDOPackage::NVList& prop) : m_prop(prop) {}
+ explicit unsubscribe(const SDOPackage::NVList& prop) : m_prop(prop) {}
void operator()(OutPortConsumer* consumer)
{
consumer->unsubscribeInterface(m_prop);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortProvider.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortProvider.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/OutPortProvider.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -507,7 +507,7 @@
*/
struct publishInterfaceProfileFunc
{
- publishInterfaceProfileFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
+ explicit publishInterfaceProfileFunc(SDOPackage::NVList& prop) : m_prop(prop) {}
void operator()(OutPortProvider* provider)
{
provider->publishInterfaceProfile(m_prop);
@@ -524,7 +524,7 @@
*/
struct publishInterfaceFunc
{
- publishInterfaceFunc(SDOPackage::NVList& prop)
+ explicit publishInterfaceFunc(SDOPackage::NVList& prop)
: m_prop(prop), provider_(0) {}
void operator()(OutPortProvider* provider)
{
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.cpp 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.cpp 2017-01-13 06:25:14 UTC (rev 2830)
@@ -566,7 +566,7 @@
: public OnSetConfigurationSetCallback
{
public:
- setCallback(::SDOPackage::PeriodicECOrganization* org) : m_org(org) {}
+ explicit setCallback(::SDOPackage::PeriodicECOrganization* org) : m_org(org) {}
virtual ~setCallback(){};
virtual void operator()(const coil::Properties& config_set)
{
@@ -581,7 +581,7 @@
: public OnAddConfigurationAddCallback
{
public:
- addCallback(::SDOPackage::PeriodicECOrganization* org) : m_org(org) {}
+ explicit addCallback(::SDOPackage::PeriodicECOrganization* org) : m_org(org) {}
virtual ~addCallback(){};
virtual void operator()(const coil::Properties& config_set)
{
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PeriodicECSharedComposite.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -86,7 +86,7 @@
*
* @endif
*/
- PeriodicECOrganization(::RTC::RTObject_impl* rtobj);
+ explicit PeriodicECOrganization(::RTC::RTObject_impl* rtobj);
/*!
* @if jp
* @brief デストラクタ
@@ -320,7 +320,7 @@
class Member
{
public:
- Member(RTC::RTObject_ptr rtobj)
+ explicit Member(RTC::RTObject_ptr rtobj)
// : rtobj_(rtobj),
// profile_(rtobj->get_component_profile()),
// eclist_(rtobj->get_owned_contexts()),
@@ -484,7 +484,7 @@
*
* @endif
*/
- PeriodicECSharedComposite(Manager* manager);
+ explicit PeriodicECSharedComposite(Manager* manager);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.cpp 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.cpp 2017-01-13 06:25:14 UTC (rev 2830)
@@ -32,7 +32,7 @@
*/
struct PortAdmin::find_port_name
{
- find_port_name(const char* name) : m_name(name) {};
+ explicit find_port_name(const char* name) : m_name(name) {};
bool operator()(const PortService_ptr& p)
{
try
@@ -59,7 +59,7 @@
struct PortAdmin::find_port
{
- find_port(const PortService_ptr& p) : m_port(p) {};
+ explicit find_port(const PortService_ptr& p) : m_port(p) {};
bool operator()(const PortService_ptr& p)
{
return m_port->_is_equivalent(p);
@@ -77,7 +77,7 @@
struct PortAdmin::del_port
{
PortAdmin* m_pa;
- del_port(PortAdmin* pa) : m_pa(pa) {};
+ explicit del_port(PortAdmin* pa) : m_pa(pa) {};
void operator()(PortBase* p)
{
m_pa->removePort(*p);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortAdmin.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -533,11 +533,11 @@
class comp_op
{
public:
- comp_op(const char* _name)
+ explicit comp_op(const char* _name)
: m_name(_name)
{
}
- comp_op(T* obj)
+ explicit comp_op(T* obj)
: m_name((const char*)(obj->getProfile().name))
{
}
@@ -560,7 +560,7 @@
class port_prof_collect
{
public:
- port_prof_collect(PortProfileList& p) : m_p(p) {}
+ explicit port_prof_collect(PortProfileList& p) : m_p(p) {}
void operator()(const PortBase* port)
{
CORBA_SeqUtil::push_back(m_p, port->getPortProfile());
@@ -579,7 +579,7 @@
class port_prof_collect2
{
public:
- port_prof_collect2(PortProfileList& p) : m_p(p) {}
+ explicit port_prof_collect2(PortProfileList& p) : m_p(p) {}
void operator()(const PortService_ptr port)
{
PortProfile* pp(port->get_port_profile());
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortBase.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortBase.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortBase.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -161,7 +161,7 @@
*
* @endif
*/
- PortBase(const char* name = "");
+ explicit PortBase(const char* name = "");
/*!
* @if jp
@@ -2222,7 +2222,7 @@
*/
struct find_conn_id
{
- find_conn_id(const char* id) : m_id(id) {};
+ explicit find_conn_id(const char* id) : m_id(id) {};
bool operator()(const ConnectorProfile& cprof)
{
return m_id == std::string(cprof.connector_id);
@@ -2239,7 +2239,7 @@
*/
struct find_port_ref
{
- find_port_ref(PortService_ptr port_ref) : m_port(port_ref) {};
+ explicit find_port_ref(PortService_ptr port_ref) : m_port(port_ref) {};
bool operator()(PortService_ptr port_ref)
{
return m_port->_is_equivalent(port_ref);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortProfileHelper.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortProfileHelper.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/PortProfileHelper.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -587,7 +587,7 @@
// Functor to find PortInterfaceProfile by name
struct if_name
{
- if_name(const char* name) : m_name(name) {};
+ explicit if_name(const char* name) : m_name(name) {};
bool operator()(const PortInterfaceProfile& p)
{
std::string name(p.instance_name);
@@ -599,7 +599,7 @@
// Functor to find ConnectorProfile by name
struct conn_name
{
- conn_name(const char* name) : m_name(name) {};
+ explicit conn_name(const char* name) : m_name(name) {};
bool operator()(const ConnectorProfile& c)
{
std::string name(c.name);
@@ -611,7 +611,7 @@
// Functor to find ConnectorProfile by id
struct conn_id
{
- conn_id(const char* id) : m_id(id) {};
+ explicit conn_id(const char* id) : m_id(id) {};
bool operator()(const ConnectorProfile& c)
{
std::string id(c.connector_id);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RTObject.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RTObject.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RTObject.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -109,7 +109,7 @@
*
* @endif
*/
- RTObject_impl(Manager* manager);
+ explicit RTObject_impl(Manager* manager);
/*!
* @if jp
@@ -4633,7 +4633,7 @@
*/
struct svc_name
{
- svc_name (const char* id) : m_id(id) {};
+ explicit svc_name (const char* id) : m_id(id) {};
bool operator()(const SDOPackage::ServiceProfile& prof)
{
return m_id == std::string(prof.id);
@@ -4902,7 +4902,7 @@
*/
struct nv_name
{
- nv_name(const char* name) : m_name(name) {};
+ explicit nv_name(const char* name) : m_name(name) {};
bool operator()(const SDOPackage::NameValue& nv)
{
return m_name == std::string(nv.name);
@@ -4919,7 +4919,7 @@
*/
struct ec_copy
{
- ec_copy(ExecutionContextList& eclist)
+ explicit ec_copy(ExecutionContextList& eclist)
: m_eclist(eclist)
{
}
@@ -4942,7 +4942,7 @@
*/
struct ec_find
{
- ec_find(ExecutionContext_ptr& ec)
+ explicit ec_find(ExecutionContext_ptr& ec)
: m_ec(ExecutionContext::_duplicate(ec))
{
}
@@ -4977,7 +4977,7 @@
*/
struct deactivate_comps
{
- deactivate_comps(LightweightRTObject_ptr comp)
+ explicit deactivate_comps(LightweightRTObject_ptr comp)
: m_comp(RTC::LightweightRTObject::_duplicate(comp))
{
}
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RingBuffer.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RingBuffer.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/RingBuffer.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -115,7 +115,7 @@
*
* @endif
*/
- RingBuffer(long int length = RINGBUFFER_DEFAULT_LENGTH)
+ explicit RingBuffer(long int length = RINGBUFFER_DEFAULT_LENGTH)
: m_overwrite(true), m_readback(true),
m_timedwrite(false), m_timedread(false),
m_wtimeout(1, 0), m_rtimeout(1, 0),
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoConfiguration.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoConfiguration.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoConfiguration.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -1135,7 +1135,7 @@
*/
struct nv_name
{
- nv_name(const char* name) : m_name(name) {};
+ explicit nv_name(const char* name) : m_name(name) {};
bool operator()(const NameValue& nv)
{
return m_name == std::string(nv.name);
@@ -1152,7 +1152,7 @@
*/
struct org_id
{
- org_id(const char* id) : m_id(id) {};
+ explicit org_id(const char* id) : m_id(id) {};
bool operator()(const Organization_ptr& o)
{
CORBA::String_var id(o->get_organization_id());
@@ -1170,7 +1170,7 @@
*/
struct config_id
{
- config_id(const char* id) : m_id(id) {};
+ explicit config_id(const char* id) : m_id(id) {};
bool operator()(const ConfigurationSet& c)
{
std::string id(c.id);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoOrganization.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoOrganization.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoOrganization.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -94,9 +94,9 @@
* @endif
*/
#ifdef ORB_IS_RTORB
- Organization_impl(RTC::RTObject_ptr sdo);
+ explicit Organization_impl(RTC::RTObject_ptr sdo);
#endif // ORB_IS_RTROB
- Organization_impl(SDOSystemElement_ptr sdo);
+ explicit Organization_impl(SDOSystemElement_ptr sdo);
/*!
* @if jp
@@ -840,7 +840,7 @@
*/
struct nv_name
{
- nv_name(const char* name) : m_name(name) {};
+ explicit nv_name(const char* name) : m_name(name) {};
bool operator()(const NameValue& nv)
{
return m_name == std::string(nv.name);
@@ -857,7 +857,7 @@
*/
struct sdo_id
{
- sdo_id(const char* id) : m_id(id) {};
+ explicit sdo_id(const char* id) : m_id(id) {};
bool operator()(const SDO_ptr sdo)
{
CORBA::String_var id(sdo->get_sdo_id());
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.cpp 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.cpp 2017-01-13 06:25:14 UTC (rev 2830)
@@ -39,7 +39,7 @@
*/
struct service_id
{
- service_id(const char* id) : m_id(id) {};
+ explicit service_id(const char* id) : m_id(id) {};
bool operator()(const SDOPackage::ServiceProfile& s)
{
std::string id(s.id);
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -167,7 +167,7 @@
*
* @endif
*/
- SdoServiceAdmin(::RTC::RTObject_impl& rtobj);
+ explicit SdoServiceAdmin(::RTC::RTObject_impl& rtobj);
/*!
* @if jp
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/StateMachine.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/StateMachine.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/StateMachine.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -283,7 +283,7 @@
*
* @endif
*/
- StateMachine(int num_of_state)
+ explicit StateMachine(int num_of_state)
: m_num(num_of_state),
m_listener(NULL),
m_entry(m_num, (Callback)NULL),
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.h
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.h 2017-01-13 05:59:36 UTC (rev 2829)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.h 2017-01-13 06:25:14 UTC (rev 2830)
@@ -131,7 +131,7 @@
*
* @endif
*/
- Logger(const char* name = "");
+ explicit Logger(const char* name = "");
/*!
* @if jp
* @brief コンストラクタ
@@ -150,7 +150,7 @@
*
* @endif
*/
- Logger(LogStreamBuf* streambuf);
+ explicit Logger(LogStreamBuf* streambuf);
/*!
* @if jp
*
More information about the openrtm-commit
mailing list