File indexing completed on 2024-09-08 03:31:08
0001 /* 0002 SPDX-FileCopyrightText: 2003-2006 Cies Breijs <cies AT kde DOT nl> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 0008 #include "errormsg.h" 0009 0010 0011 ErrorMessage::ErrorMessage(const QString& text, const Token& t, int code) 0012 : _errorText(text), 0013 _errorToken(t), 0014 _errorCode(code) 0015 { 0016 } 0017 0018 bool ErrorMessage::operator==(const ErrorMessage& n) const 0019 { 0020 // the 'operator==' method has to be implemented for the ErrorList wants to do searches 0021 if (n.text() == _errorText || 0022 n.token() == _errorToken || 0023 n.code() == _errorCode) return true; 0024 return false; 0025 }