From 60b7d15a1d22e064acf0974c5d7eabbb57dd8071 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 11 Jul 2008 02:05:02 -0400 Subject: [PATCH] - Fixed bug on Ubuntu whereby it wants std::string::size_type rather than unsigned int. --- src/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index e96229f9b..8717619da 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -308,7 +308,7 @@ int convertDuration (std::string& input) std::string expandPath (const std::string& in) { std::string copy = in; - unsigned int tilde; + std::string::size_type tilde; if ((tilde = copy.find ("~/")) != std::string::npos) { @@ -317,7 +317,7 @@ std::string expandPath (const std::string& in) } else if ((tilde = copy.find ("~")) != std::string::npos) { - unsigned int slash; + std::string::size_type slash; if ((slash = copy.find ("/", tilde)) != std::string::npos) { std::string name = copy.substr (tilde + 1, slash - tilde - 1);