From 4baf30cf9c320415da13b379f933cf8b833e50a0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 15 Mar 2009 16:13:02 -0400 Subject: [PATCH] Portability - Ubuntu 8 - Changed unsigned int to size_t for std::string::npos comparison. - Removed validBuiltinCommand function that is not used. --- src/parse.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/parse.cpp b/src/parse.cpp index b0a1c5197..b5adb8388 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -342,18 +342,6 @@ static bool validCommand (std::string& input) return true; } -//////////////////////////////////////////////////////////////////////////////// -static bool validBuiltinCommand (std::string& input) -{ - std::string copy = input; - guess ("command", commands, copy); - if (copy == "") - return false; - - input = copy; - return true; -} - //////////////////////////////////////////////////////////////////////////////// static bool validSubstitution ( std::string& input, @@ -509,7 +497,7 @@ void loadCustomReports (Config& conf) if (i->substr (0, 7) == "report.") { std::string report = i->substr (7, std::string::npos); - unsigned int columns = report.find (".columns"); + size_t columns = report.find (".columns"); if (columns != std::string::npos) { report = report.substr (0, columns);