Code style: Declare (Type& value) instead of (Type &value)
diff --git a/tests/test-publish-async.cpp b/tests/test-publish-async.cpp
index 5358169..e28871c 100644
--- a/tests/test-publish-async.cpp
+++ b/tests/test-publish-async.cpp
@@ -23,7 +23,7 @@
}
void operator()
- (const ptr_lib::shared_ptr<const Name> &prefix, const ptr_lib::shared_ptr<const Interest> &interest, Transport &transport) {
+ (const ptr_lib::shared_ptr<const Name>& prefix, const ptr_lib::shared_ptr<const Interest>& interest, Transport& transport) {
++interestCount_;
// Make and sign a Data packet.
@@ -58,7 +58,7 @@
// We need to sleep for a few milliseconds so we don't use 100% of the CPU.
usleep(10000);
}
- } catch (std::exception &e) {
+ } catch (std::exception& e) {
cout << "exception: " << e.what() << endl;
}
return 0;