diff options
Diffstat (limited to 'kicker-applets/math/parser.cpp')
-rw-r--r-- | kicker-applets/math/parser.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kicker-applets/math/parser.cpp b/kicker-applets/math/parser.cpp index 8a58064..c49cbab 100644 --- a/kicker-applets/math/parser.cpp +++ b/kicker-applets/math/parser.cpp @@ -243,9 +243,9 @@ int Parser::addfkt(TQString str) err=0; errpos=1; str.remove(" " ); - const int p1=str.find('('); - int p2=str.find(','); - const int p3=str.find(")="); + const int p1=str.tqfind('('); + int p2=str.tqfind(','); + const int p3=str.tqfind(")="); //insert '*' when it is needed for(int i=p1+3; i < (int) str.length();i++) @@ -656,41 +656,41 @@ int Parser::getfix(TQString name) int Parser::errmsg() { switch(err) { case 1: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Syntax error").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Syntax error").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 2: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Missing parenthesis").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Missing tqparenthesis").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 3: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Function name unknown").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Function name unknown").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 4: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Void function variable").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Void function variable").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 5: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Too many functions").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Too many functions").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 6: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Token-memory overflow").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Token-memory overflow").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 7: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Stack overflow").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Stack overflow").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 8: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "Name of function not free").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "Name of function not free").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 9: KMessageBox::error(0, i18n("Parser error at position %1:\n" - "recursive function not allowed").arg(TQString::number(errpos)), i18n("Math Expression Evaluator")); + "recursive function not allowed").tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; - case 10: KMessageBox::error(0, i18n("Could not find a defined constant at position %1" ).arg(TQString::number(errpos)), + case 10: KMessageBox::error(0, i18n("Could not find a defined constant at position %1" ).tqarg(TQString::number(errpos)), i18n("Math Expression Evaluator")); break; case 11: KMessageBox::error(0, i18n("Empty function"), i18n("Math Expression Evaluator")); |