[Kalzium] KDE/kdeedu/kalzium/src

Carsten Niehaus cniehaus at gmx.de
Tue Jan 3 13:38:02 CET 2006


Am Dienstag, 3. Januar 2006 13:14 schrieb Carsten Niehaus:
> Ok, activating the calculator again. The problem is that it somehow crashes
> in the parser... The only line with QString::at() (as stated in comment #6)
> is this line:
>
>    m_nextChar = m_str.at(++m_index).toLatin1();
>
> (that is in Parser::getNextChar).

I fixed this by adding two null-checks (empty QString), one in Kalzium and one 
in the parser itself. Furthermore, I move the ++m_index up because something 
changed in QString::at() between Qt3 and Qt4.
The Calculator is now complelty functional.

Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kalzium/attachments/20060103/d8fb8fb5/attachment.pgp


More information about the Kalzium mailing list