From cf2c43e7abb5abd4ae8d040a4452f2499cc1c305 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 1 Aug 2013 15:54:24 -0700 Subject: [PATCH] Fix clang compile --- .../diagnostic/beast_SemanticVersion.cpp | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/beast_core/diagnostic/beast_SemanticVersion.cpp b/modules/beast_core/diagnostic/beast_SemanticVersion.cpp index 2cf324a418..a8b4427424 100644 --- a/modules/beast_core/diagnostic/beast_SemanticVersion.cpp +++ b/modules/beast_core/diagnostic/beast_SemanticVersion.cpp @@ -367,7 +367,7 @@ public: checkRelease (input, shouldPass); } - void ncheck (String const& input) + void negcheck (String const& input) { check (input, false); } @@ -381,28 +381,28 @@ public: check ("2147483647.2147483647.2147483647"); // max int // negative values - ncheck ("-1.2.3"); - ncheck ("1.-2.3"); - ncheck ("1.2.-3"); + negcheck ("-1.2.3"); + negcheck ("1.-2.3"); + negcheck ("1.2.-3"); // missing parts - ncheck (""); - ncheck ("1"); - ncheck ("1."); - ncheck ("1.2"); - ncheck ("1.2."); - ncheck (".2.3"); + negcheck (""); + negcheck ("1"); + negcheck ("1."); + negcheck ("1.2"); + negcheck ("1.2."); + negcheck (".2.3"); // whitespace - ncheck (" 1.2.3"); - ncheck ("1 .2.3"); - ncheck ("1.2 .3"); - ncheck ("1.2.3 "); + negcheck (" 1.2.3"); + negcheck ("1 .2.3"); + negcheck ("1.2 .3"); + negcheck ("1.2.3 "); // leading zeroes - ncheck ("01.2.3"); - ncheck ("1.02.3"); - ncheck ("1.2.03"); + negcheck ("01.2.3"); + negcheck ("1.02.3"); + negcheck ("1.2.03"); } static StringArray ids ()