[Kst] branches/work/kst/portto4/kst/src/libkstmath

Adam Treat treat at kde.org
Tue Feb 20 19:56:29 CET 2007


SVN commit 635725 by treat:

* latin1 -> toLatin1 and erase -> remove


 M  +4 -4      kstequation.cpp  


--- branches/work/kst/portto4/kst/src/libkstmath/kstequation.cpp #635724:635725
@@ -240,7 +240,7 @@
   // the optimizer
   if (!_equation.isEmpty()) {
     QMutexLocker ml(&Equation::mutex());
-    yy_scan_string(_equation.latin1());
+    yy_scan_string(_equation.toLatin1());
     ParsedEquation = 0L;
     int rc = yyparse();
     Equation::Node *en = static_cast<Equation::Node*>(ParsedEquation);
@@ -278,7 +278,7 @@
   _pe = 0L;
   if (!_equation.isEmpty()) {
     Equation::mutex().lock();
-    yy_scan_string(_equation.latin1());
+    yy_scan_string(_equation.toLatin1());
     int rc = yyparse();
     _pe = static_cast<Equation::Node*>(ParsedEquation);
     if (rc == 0 && _pe) {
@@ -323,7 +323,7 @@
 
   setDirty();
 
-  _inputVectors.erase(XINVECTOR);
+  _inputVectors.remove(XINVECTOR);
   _xInVector = _inputVectors.insert(XINVECTOR, in_xv);
 
   _ns = 2; // reset the updating
@@ -447,7 +447,7 @@
     }
 
     QMutexLocker ml(&Equation::mutex());
-    yy_scan_string(_equation.latin1());
+    yy_scan_string(_equation.toLatin1());
     int rc = yyparse();
     _pe = static_cast<Equation::Node*>(ParsedEquation);
     if (_pe && rc == 0) {


More information about the Kst mailing list