summaryrefslogtreecommitdiffstats
path: root/src/numerictypes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/numerictypes.cpp')
-rw-r--r--src/numerictypes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/numerictypes.cpp b/src/numerictypes.cpp
index c75268e..b7d607d 100644
--- a/src/numerictypes.cpp
+++ b/src/numerictypes.cpp
@@ -72,7 +72,7 @@ TQString convertToString(const mpfr_ptr &number)
// Remove trailing zeroes.
if(Abakus::m_prec < 0)
- r.tqreplace(zeroKiller, "");
+ r.replace(zeroKiller, "");
// But don't display numbers like 2.e10 either.
if(r.isEmpty())
@@ -124,7 +124,7 @@ TQString convertToString(const mpfr_ptr &number)
}
// Remove trailing zeroes.
- r.tqreplace(zeroKiller, "");
+ r.replace(zeroKiller, "");
// Don't display numbers of the form .23
if(l.isEmpty())
@@ -176,7 +176,7 @@ TQString convertToString(const HNumber &num)
{
TQString str = HMath::formatGenString(num, m_prec);
TQString decimalSymbol = KGlobal::locale()->decimalSymbol();
- str.tqreplace('.', decimalSymbol);
+ str.replace('.', decimalSymbol);
TQStringList parts = TQStringList::split("e", str);
TQRegExp zeroKiller("(" + TQRegExp::escape(decimalSymbol) +
@@ -184,8 +184,8 @@ TQString convertToString(const HNumber &num)
TQRegExp zeroKiller2("(" + TQRegExp::escape(decimalSymbol) + ")0*$");
str = parts[0];
- str.tqreplace(zeroKiller, "\\1");
- str.tqreplace(zeroKiller2, "\\1");
+ str.replace(zeroKiller, "\\1");
+ str.replace(zeroKiller2, "\\1");
if(str.endsWith(decimalSymbol))
str.truncate(str.length() - 1); // Remove trailing period.