aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-04-06 19:19:54 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-04-06 19:31:20 -0700
commit402bbbc1e2b26f714f88cc6f40283008dabba64f (patch)
treed310d324f301ebfb75b770880331208cd9709885 /toolsrc/include
parentbe2ea0373fbbb17ec792155ebaec0d2dd3d95242 (diff)
downloadvcpkg-402bbbc1e2b26f714f88cc6f40283008dabba64f.tar.gz
vcpkg-402bbbc1e2b26f714f88cc6f40283008dabba64f.zip
[Checks] Take parameter by ref
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/checks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/include/vcpkg/base/checks.h b/toolsrc/include/vcpkg/base/checks.h
index fb162c897..bceee3428 100644
--- a/toolsrc/include/vcpkg/base/checks.h
+++ b/toolsrc/include/vcpkg/base/checks.h
@@ -27,7 +27,7 @@ namespace vcpkg::Checks
// Display an error message to the user and exit the tool.
[[noreturn]] void exit_with_message(const LineInfo& line_info,
const char* error_message_template,
- const Arg1 error_message_arg1,
+ const Arg1& error_message_arg1,
const Args&... error_message_args)
{
exit_with_message(line_info,
@@ -42,7 +42,7 @@ namespace vcpkg::Checks
void check_exit(const LineInfo& line_info,
Conditional&& expression,
const char* error_message_template,
- const Arg1 error_message_arg1,
+ const Arg1& error_message_arg1,
const Args&... error_message_args)
{
if (!expression)