From d90c1274a42f5ba8f325e0a8f35b60185c278b0a Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 6 Apr 2011 00:53:11 +0100 Subject: [PATCH] Dont use assert when calling ValidateLine --- Tle.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tle.cpp b/Tle.cpp index c235628..62d9b63 100644 --- a/Tle.cpp +++ b/Tle.cpp @@ -232,7 +232,10 @@ bool Tle::IsValidLine(std::string& str, TleLine line) { * validate line given a pattern */ bool Tle::ValidateLine(const std::string& pattern, const std::string& line) { - assert(pattern.length() == line.length()); + + if (pattern.length() != line.length()) { + return false; + } std::string::size_type pos = 0;