face: pass processEvents duration by value
refs #3284
Change-Id: I146417f49c73fe93c6b38bb0dcd1b45bb949511f
diff --git a/src/face.hpp b/src/face.hpp
index 4e722c6..b375e93 100644
--- a/src/face.hpp
+++ b/src/face.hpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
@@ -434,7 +434,7 @@
* log/disregard all exceptions.
*/
void
- processEvents(const time::milliseconds& timeout = time::milliseconds::zero(),
+ processEvents(time::milliseconds timeout = time::milliseconds::zero(),
bool keepThread = false)
{
this->doProcessEvents(timeout, keepThread);
@@ -469,7 +469,7 @@
protected:
virtual void
- doProcessEvents(const time::milliseconds& timeout, bool keepThread);
+ doProcessEvents(time::milliseconds timeout, bool keepThread);
private:
/**