From ff626ac76357940b2f0ac5cb243a68ac13df0f8a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 18:48:38 +0200 Subject: *: use references instead of pointers --- src/protocol/ArgParser.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/protocol/ArgParser.cxx') diff --git a/src/protocol/ArgParser.cxx b/src/protocol/ArgParser.cxx index e96aaf1c8..b13ea3f4e 100644 --- a/src/protocol/ArgParser.cxx +++ b/src/protocol/ArgParser.cxx @@ -26,7 +26,7 @@ #include bool -check_uint32(Client *client, uint32_t *dst, const char *s) +check_uint32(Client &client, uint32_t *dst, const char *s) { char *test; @@ -40,7 +40,7 @@ check_uint32(Client *client, uint32_t *dst, const char *s) } bool -check_int(Client *client, int *value_r, const char *s) +check_int(Client &client, int *value_r, const char *s) { char *test; long value; @@ -64,7 +64,7 @@ check_int(Client *client, int *value_r, const char *s) } bool -check_range(Client *client, unsigned *value_r1, unsigned *value_r2, +check_range(Client &client, unsigned *value_r1, unsigned *value_r2, const char *s) { char *test, *test2; @@ -131,7 +131,7 @@ check_range(Client *client, unsigned *value_r1, unsigned *value_r2, } bool -check_unsigned(Client *client, unsigned *value_r, const char *s) +check_unsigned(Client &client, unsigned *value_r, const char *s) { unsigned long value; char *endptr; @@ -154,7 +154,7 @@ check_unsigned(Client *client, unsigned *value_r, const char *s) } bool -check_bool(Client *client, bool *value_r, const char *s) +check_bool(Client &client, bool *value_r, const char *s) { long value; char *endptr; @@ -171,7 +171,7 @@ check_bool(Client *client, bool *value_r, const char *s) } bool -check_float(Client *client, float *value_r, const char *s) +check_float(Client &client, float *value_r, const char *s) { float value; char *endptr; -- cgit v1.2.3