prt-get remove trailing whitespace from versioncomparator.cpp

git-svn-id: https://crux.nu/svn/tools/prt-get/trunk@1803 0b5ae1c7-2405-0410-a7fc-ba219f786e1e
This commit is contained in:
Johannes Winkelmann 2006-09-02 14:16:05 +00:00
parent 1e7028f079
commit 8994a63970

View File

@ -88,11 +88,11 @@ COMP_RESULT compareVersions(const string& v1, const string& v2)
} else { } else {
// smart guessing... // smart guessing...
// leaving out 'test', 'pre' and 'rc' // leaving out 'test', 'pre' and 'rc'
static const string versions = static const string versions =
"alpha beta gamma delta"; "alpha beta gamma delta";
string::size_type pos1 = string::size_type pos1 =
versions.find(subtokens1[k]); versions.find(subtokens1[k]);
string::size_type pos2 = string::size_type pos2 =
versions.find(subtokens2[k]); versions.find(subtokens2[k]);
if (pos1 != string::npos && pos2 != string::npos) { if (pos1 != string::npos && pos2 != string::npos) {
if (pos1 < pos2) { if (pos1 < pos2) {