summaryrefslogtreecommitdiffstats
path: root/lib/kross/api/variant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/api/variant.cpp')
-rw-r--r--lib/kross/api/variant.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kross/api/variant.cpp b/lib/kross/api/variant.cpp
index 54e8ed7e..e8d8bc1b 100644
--- a/lib/kross/api/variant.cpp
+++ b/lib/kross/api/variant.cpp
@@ -81,7 +81,7 @@ const TQString Variant::toString(Object::Ptr object)
{
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::String))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::String expected, but got %1.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::String expected, but got %1.").tqarg(variant.typeName()).latin1()) );
return variant.toString();
}
@@ -89,7 +89,7 @@ int Variant::toInt(Object::Ptr object)
{
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::Int))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Int expected, but got %1.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Int expected, but got %1.").tqarg(variant.typeName()).latin1()) );
return variant.toInt();
}
@@ -97,7 +97,7 @@ uint Variant::toUInt(Object::Ptr object)
{
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::UInt))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::UInt expected, but got %1.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::UInt expected, but got %1.").tqarg(variant.typeName()).latin1()) );
return variant.toUInt();
}
@@ -105,7 +105,7 @@ double Variant::toDouble(Object::Ptr object)
{
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::Double))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Double expected, but got %1.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Double expected, but got %1.").tqarg(variant.typeName()).latin1()) );
return variant.toDouble();
}
@@ -113,7 +113,7 @@ TQ_LLONG Variant::toLLONG(Object::Ptr object)
{
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::LongLong))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::LLONG expected, but got %1.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::LLONG expected, but got %1.").tqarg(variant.typeName()).latin1()) );
return variant.toLongLong();
}
@@ -121,7 +121,7 @@ TQ_ULLONG Variant::toULLONG(Object::Ptr object)
{
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::ULongLong))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::ULLONG expected, but got %1.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::ULLONG expected, but got %1.").tqarg(variant.typeName()).latin1()) );
return variant.toULongLong();
}
@@ -129,7 +129,7 @@ bool Variant::toBool(Object::Ptr object)
{
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::Bool))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Bool expected, but got %1.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Bool expected, but got %1.").tqarg(variant.typeName()).latin1()) );
return variant.toBool();
}
@@ -146,7 +146,7 @@ TQStringList Variant::toStringList(Object::Ptr object)
}
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::StringList))
- throw Exception::Ptr( new Exception(TQString("Kross::Api::Variant::StringList expected, but got '%1'.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(TQString("Kross::Api::Variant::StringList expected, but got '%1'.").tqarg(variant.typeName()).latin1()) );
return variant.toStringList();
}
@@ -163,6 +163,6 @@ TQValueList<TQVariant> Variant::toList(Object::Ptr object)
}
const TQVariant& variant = toVariant(object);
if(! variant.canCast(TQVariant::List))
- throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::List expected, but got '%1'.").arg(variant.typeName()).latin1()) );
+ throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::List expected, but got '%1'.").tqarg(variant.typeName()).latin1()) );
return variant.toList();
}