Dont use assert when calling ValidateLine

feature/19
Daniel Warner 2011-04-06 00:53:11 +01:00
parent 99d37a2621
commit d90c1274a4
1 changed files with 4 additions and 1 deletions

View File

@ -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;