From 62389888b6742d91187f40527f68a41b1f32db67 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 14 Sep 2008 19:39:56 -0400 Subject: The ledger::string type now uses size_type for a length parameter instead of "const int", which is not portable. --- src/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index 2f563dde..8f296341 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -387,8 +387,8 @@ string::string(const string& str) : std::string(str) { string::string(const std::string& str) : std::string(str) { TRACE_CTOR(string, "const std::string&"); } -string::string(const int len, char x) : std::string(len, x) { - TRACE_CTOR(string, "const int, char"); +string::string(size_type len, char x) : std::string(len, x) { + TRACE_CTOR(string, "size_type, char"); } string::string(const char * str) : std::string(str) { TRACE_CTOR(string, "const char *"); -- cgit v1.2.3