refactor: cleanup and sync
* Fix Jenkins scripts and sync with ndn-cxx
* Sync waf-tools
* Remove ChronoSync submodule
* Remove commented/dead code and includes
* Use ScopedEventId and ScopedRegisteredPrefixHandle
* Set setCanBePrefix to true explicitly everywhere
* Fix macOS build, add GHA CI
* Use NDN_THROW for throwing errors
* Other smaller fixes
Change-Id: I615e0e239511b97101852e1d7c620a2071a18ff8
diff --git a/src/invitation.cpp b/src/invitation.cpp
index e7d2ac5..9af3c4d 100644
--- a/src/invitation.cpp
+++ b/src/invitation.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/*
- * Copyright (c) 2013, Regents of the University of California
+ * Copyright (c) 2020, Regents of the University of California
* Yingdi Yu
*
* BSD license, See the LICENSE file for more information
@@ -12,8 +12,6 @@
#include <ndn-cxx/security/signature-sha256-with-rsa.hpp>
-#include "logging.h"
-
namespace chronochat {
using std::string;
@@ -35,10 +33,10 @@
size_t nameSize = interestName.size();
if (nameSize < NAME_SIZE_MIN)
- throw Error("Wrong Invitation Name: Wrong length");
+ NDN_THROW(Error("Wrong Invitation Name: Wrong length"));
if (interestName.get(CHRONOCHAT_INVITATION).toUri() != "CHRONOCHAT-INVITATION")
- throw Error("Wrong Invitation Name: Wrong application tags");
+ NDN_THROW(Error("Wrong Invitation Name: Wrong application tags"));
m_interestName = interestName.getPrefix(KEY_LOCATOR);
m_timestamp = interestName.get(TIMESTAMP).toNumber();