diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 04:35:19 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 05:01:39 -0400 |
commit | 588f2ef2f51d7bdf209820bfb244034863601939 (patch) | |
tree | 7a473de7c117bf71bb802398823826ca4dfbfdca /src/utils.cc | |
parent | dc66840dd745863c06ad6513f9f66d589bcc29d8 (diff) | |
download | fork-ledger-588f2ef2f51d7bdf209820bfb244034863601939.tar.gz fork-ledger-588f2ef2f51d7bdf209820bfb244034863601939.tar.bz2 fork-ledger-588f2ef2f51d7bdf209820bfb244034863601939.zip |
Fixed many compiler warnings from g++ 4.4
Diffstat (limited to 'src/utils.cc')
-rw-r--r-- | src/utils.cc | 18 |
1 files changed, 10 insertions, 8 deletions
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); |