Commit 6e204b3e authored by coderhyme's avatar coderhyme Committed by Uze Choi

Merged constructors of the RCSResourceObject::Builder.

Change-Id: I4fd030a951c7d2c655b1a1c7c01e0812328dde78
Signed-off-by: default avatarcoderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6207Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarInga Stotland <inga.stotland@intel.com>
Reviewed-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent e9c51741
......@@ -144,17 +144,7 @@ namespace OIC
* @param interface Resource interface
*
*/
Builder(std::string &&uri, std::string &&type, std::string &&interface);
/**
* Constructs a Builder.
*
* @param uri Resource uri
* @param type Resource type
* @param interface Resource interface
*
*/
Builder(const std::string &uri, const std::string &type, const std::string &interface);
Builder(std::string uri, std::string type, std::string interface);
/**
* Add an interface for the resource.
......
......@@ -138,8 +138,8 @@ namespace OIC
namespace Service
{
RCSResourceObject::Builder::Builder(std::string &&uri, std::string &&type,
std::string &&interface) :
RCSResourceObject::Builder::Builder(std::string uri, std::string type,
std::string interface) :
m_uri{ std::move(uri) },
m_types{ std::move(type) },
m_interfaces{ },
......@@ -156,17 +156,6 @@ namespace OIC
}
}
RCSResourceObject::Builder::Builder(const std::string &uri, const std::string &type,
const std::string &interface) :
m_uri{ uri },
m_types{ type },
m_interfaces{ interface },
m_defaultInterface { BASELINE_INTERFACE },
m_properties{ OC_DISCOVERABLE | OC_OBSERVABLE },
m_resourceAttributes{ }
{
}
RCSResourceObject::Builder& RCSResourceObject::Builder::addInterface(std::string interface)
{
insertValue(m_interfaces, std::move(interface));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment