aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/types.hh6
-rw-r--r--src/libutil/util.hh2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh
index 5d3e76421..20b96a85c 100644
--- a/src/libutil/types.hh
+++ b/src/libutil/types.hh
@@ -97,14 +97,14 @@ public:
unsigned int status = 1; // exit status
template<typename... Args>
- BaseError(unsigned int status, Args... args)
+ BaseError(unsigned int status, const Args & ... args)
: err(fmt(args...))
, status(status)
{
}
template<typename... Args>
- BaseError(Args... args)
+ BaseError(const Args & ... args)
: err(fmt(args...))
{
}
@@ -136,7 +136,7 @@ public:
int errNo;
template<typename... Args>
- SysError(Args... args)
+ SysError(const Args & ... args)
: Error(addErrno(fmt(args...)))
{ }
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index b9f9ea882..a1acb49b5 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -299,7 +299,7 @@ public:
int status;
template<typename... Args>
- ExecError(int status, Args... args)
+ ExecError(int status, const Args & ... args)
: Error(args...), status(status)
{ }
};