Code style: Put function return type on a line by itself.
diff --git a/ndn-cpp/face.hpp b/ndn-cpp/face.hpp
index affb0b7..2b202ef 100644
--- a/ndn-cpp/face.hpp
+++ b/ndn-cpp/face.hpp
@@ -46,7 +46,8 @@
* @param onTimeout A function object to call if the interest times out. If onTimeout is an empty OnTimeout(), this does not use it.
* This copies the function object, so you may need to use func_lib::ref() as appropriate.
*/
- void expressInterest(const Interest& interest, const OnData& onData, const OnTimeout& onTimeout = OnTimeout())
+ void
+ expressInterest(const Interest& interest, const OnData& onData, const OnTimeout& onTimeout = OnTimeout())
{
node_.expressInterest(interest, onData, onTimeout);
}
@@ -61,7 +62,8 @@
* @param onTimeout A function object to call if the interest times out. If onTimeout is an empty OnTimeout(), this does not use it.
* This copies the function object, so you may need to use func_lib::ref() as appropriate.
*/
- void expressInterest(const Name& name, const Interest *interestTemplate, const OnData& onData, const OnTimeout& onTimeout = OnTimeout());
+ void
+ expressInterest(const Name& name, const Interest *interestTemplate, const OnData& onData, const OnTimeout& onTimeout = OnTimeout());
/**
* Encode name as an Interest, using a default interest lifetime.
@@ -72,7 +74,8 @@
* @param onTimeout A function object to call if the interest times out. If onTimeout is an empty OnTimeout(), this does not use it.
* This copies the function object, so you may need to use func_lib::ref() as appropriate.
*/
- void expressInterest(const Name& name, const OnData& onData, const OnTimeout& onTimeout = OnTimeout())
+ void
+ expressInterest(const Name& name, const OnData& onData, const OnTimeout& onTimeout = OnTimeout())
{
expressInterest(name, 0, onData, onTimeout);
}
@@ -84,7 +87,8 @@
* use func_lib::ref() as appropriate.
* @param flags The flags for finer control of which interests are forward to the application.
*/
- void registerPrefix(const Name& prefix, const OnInterest& onInterest, int flags = 0)
+ void
+ registerPrefix(const Name& prefix, const OnInterest& onInterest, int flags = 0)
{
node_.registerPrefix(prefix, onInterest, flags);
}
@@ -96,7 +100,8 @@
* @throw This may throw an exception for reading data or in the callback for processing the data. If you
* call this from an main event loop, you may want to catch and log/disregard all exceptions.
*/
- void processEvents()
+ void
+ processEvents()
{
// Just call Node's processEvents.
node_.processEvents();
@@ -105,7 +110,8 @@
/**
* Shut down and disconnect this Face.
*/
- void shutdown();
+ void
+ shutdown();
private:
Node node_;