aboutsummaryrefslogtreecommitdiffstats
path: root/icnet/ccnx/icnet_ccnx_name.cc
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-04-18 11:25:13 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-04-18 09:31:56 +0000
commit7e312299ab4a84334af19e4988e9c5365626b80b (patch)
treed223f035dbcfb734dd6384c18c83fa6421a3aa1b /icnet/ccnx/icnet_ccnx_name.cc
parent526f25cf2a8777e4cf88732b87076bf9457ae8df (diff)
- Fixing code style issues
- Adding new feature to producer test: now it is possible to specify the size of the file to download - Fixing initialization of max number of retransmissions in icnet_socket_consumer.cc Change-Id: Ia7e48a4beda6adebf5179700c80f6d7316922187 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/ccnx/icnet_ccnx_name.cc')
-rw-r--r--icnet/ccnx/icnet_ccnx_name.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/icnet/ccnx/icnet_ccnx_name.cc b/icnet/ccnx/icnet_ccnx_name.cc
index 2ea0d8ab..bb329c83 100644
--- a/icnet/ccnx/icnet_ccnx_name.cc
+++ b/icnet/ccnx/icnet_ccnx_name.cc
@@ -23,21 +23,26 @@ Name::Name() {
name_ = ccnxName_Create();
}
-Name::Name(const char *uri) : name_(ccnxName_CreateFromCString(uri)) {
+Name::Name(const char *uri)
+ : name_(ccnxName_CreateFromCString(uri)) {
ccnxName_AssertValid(name_);
}
-Name::Name(std::string uri) : Name(uri.c_str()) {
+Name::Name(std::string uri)
+ : Name(uri.c_str()) {
}
-Name::Name(const CCNxNameStructure *name) : name_(ccnxName_Acquire(name)) {
+Name::Name(const CCNxNameStructure *name)
+ : name_(ccnxName_Acquire(name)) {
ccnxName_AssertValid(name_);
}
-Name::Name(const Name &name) : name_(ccnxName_Copy(name.name_)) {
+Name::Name(const Name &name)
+ : name_(ccnxName_Copy(name.name_)) {
}
-Name::Name(Name &&otherName) : name_(ccnxName_Acquire(otherName.name_)) {
+Name::Name(Name &&otherName)
+ : name_(ccnxName_Acquire(otherName.name_)) {
}
Name &Name::operator=(const Name &name) {