From 588f2ef2f51d7bdf209820bfb244034863601939 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 25 Oct 2009 04:35:19 -0400 Subject: Fixed many compiler warnings from g++ 4.4 --- src/utils.cc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index f2449daf..1cdbb9a0 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -402,17 +402,19 @@ string::string(const char * str) : std::string(str) { string::string(const char * str, const char * end) : std::string(str, end) { TRACE_CTOR(string, "const char *, const char *"); } -string::string(const string& str, int x) : std::string(str, x) { - TRACE_CTOR(string, "const string&, int"); +string::string(const string& str, size_type x) : std::string(str, x) { + TRACE_CTOR(string, "const string&, size_type"); } -string::string(const string& str, int x, int y) : std::string(str, x, y) { - TRACE_CTOR(string, "const string&, int, int"); +string::string(const string& str, size_type x, size_type y) + : std::string(str, x, y) { + TRACE_CTOR(string, "const string&, size_type, size_type"); } -string::string(const char * str, int x) : std::string(str, x) { - TRACE_CTOR(string, "const char *, int"); +string::string(const char * str, size_type x) : std::string(str, x) { + TRACE_CTOR(string, "const char *, size_type"); } -string::string(const char * str, int x, int y) : std::string(str, x, y) { - TRACE_CTOR(string, "const char *, int, int"); +string::string(const char * str, size_type x, size_type y) + : std::string(str, x, y) { + TRACE_CTOR(string, "const char *, size_type, size_type"); } string::~string() throw() { TRACE_DTOR(string); -- cgit v1.2.3