@@ -50,7 +50,7 @@ SuppressionList::ErrorMessage SuppressionList::ErrorMessage::fromErrorMessage(co
5050 ret.lineNumber = msg.callStack .back ().line ;
5151 } else {
5252 ret.setFileName (msg.file0 );
53- ret.lineNumber = SuppressionList::Suppression::NO_LINE ;
53+ ret.lineNumber = 0 ;
5454 }
5555 ret.certainty = msg.certainty ;
5656 ret.symbolNames = msg.symbolNames ();
@@ -415,7 +415,7 @@ SuppressionList::Suppression::Result SuppressionList::Suppression::isSuppressed(
415415 if (!errorId.empty () && !matchglob (errorId, errmsg.errorId ))
416416 return Result::Checked;
417417 } else {
418- if ((SuppressionList::Type::unique == type) && (lineNumber != NO_LINE ) && (lineNumber != errmsg.lineNumber )) {
418+ if ((SuppressionList::Type::unique == type) && (lineNumber != 0 ) && (lineNumber != errmsg.lineNumber )) {
419419 if (!thisAndNextLine || lineNumber + 1 != errmsg.lineNumber )
420420 return Result::None;
421421 }
@@ -524,15 +524,15 @@ void SuppressionList::dump(std::ostream & out, const std::string& filePath) cons
524524 out << " errorId=\" " << ErrorLogger::toxml (suppression.errorId ) << ' "' ;
525525 if (!suppression.fileName .empty ())
526526 out << " fileName=\" " << ErrorLogger::toxml (suppression.fileName ) << ' "' ;
527- if (suppression.lineNumber != Suppression::NO_LINE )
527+ if (suppression.lineNumber != 0 )
528528 out << " lineNumber=\" " << suppression.lineNumber << ' "' ;
529529 if (!suppression.symbolName .empty ())
530530 out << " symbolName=\" " << ErrorLogger::toxml (suppression.symbolName ) << ' \" ' ;
531531 if (suppression.hash > 0 )
532532 out << " hash=\" " << suppression.hash << ' \" ' ;
533- if (suppression.lineBegin != Suppression::NO_LINE )
533+ if (suppression.lineBegin != 0 )
534534 out << " lineBegin=\" " << suppression.lineBegin << ' "' ;
535- if (suppression.lineEnd != Suppression::NO_LINE )
535+ if (suppression.lineEnd != 0 )
536536 out << " lineEnd=\" " << suppression.lineEnd << ' "' ;
537537 if (suppression.type == SuppressionList::Type::file)
538538 out << " type=\" file\" " ;
@@ -565,7 +565,7 @@ std::list<SuppressionList::Suppression> SuppressionList::getUnmatchedLocalSuppre
565565 continue ;
566566 if (s.matched )
567567 continue ;
568- if ((s.lineNumber != Suppression::NO_LINE ) && !s.checked )
568+ if ((s.lineNumber != 0 ) && !s.checked )
569569 continue ;
570570 if (s.type == SuppressionList::Type::macro)
571571 continue ;
@@ -661,7 +661,7 @@ std::string SuppressionList::Suppression::toString() const
661661 if (!fileName.empty ()) {
662662 s += ' :' ;
663663 s += fileName;
664- if (lineNumber != - 1 ) {
664+ if (lineNumber != 0 ) {
665665 s += ' :' ;
666666 s += std::to_string (lineNumber);
667667 }
0 commit comments