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/main.cpp b/src/main.cpp
index 90f1d9d..039fa42 100644
--- a/src/main.cpp
+++ b/src/main.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
@@ -8,10 +8,11 @@
* Author: Yingdi Yu <yingdi@cs.ucla.edu>
*/
+#include "controller.hpp"
+
#include <QApplication>
#include <QTextCodec>
-#include "controller.hpp"
#include <iostream>
#include <ndn-cxx/face.hpp>
#include <boost/thread/thread.hpp>
@@ -28,9 +29,9 @@
notify(QObject* receiver, QEvent* event)
{
try {
- return QApplication::notify(receiver, event);
+ return QApplication::notify(receiver, event);
}
- catch (std::exception& e) {
+ catch (const std::exception& e) {
std::cerr << "Exception thrown:" << e.what() << std::endl;
return false;
}