From 09a7c6aa7a07f874f5357cde62b5753a10a5e107 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 24 Oct 2017 18:34:41 +0200 Subject: Use const reference for decimal_from_string argument No functional change. gdb/ChangeLog: 2017-10-24 Ulrich Weigand * dfp.h (decimal_from_string): Use const reference for argument. * dfp.c (decimal_from_string): Likewise. --- gdb/dfp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/dfp.c') diff --git a/gdb/dfp.c b/gdb/dfp.c index 1cdb35c..a13e260 100644 --- a/gdb/dfp.c +++ b/gdb/dfp.c @@ -190,7 +190,7 @@ decimal_to_string (const gdb_byte *decbytes, int len, decimal64 and 16 bytes for decimal128. */ bool decimal_from_string (gdb_byte *decbytes, int len, enum bfd_endian byte_order, - std::string string) + const std::string &string) { decContext set; gdb_byte dec[16]; -- cgit v1.1