summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_painter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_painter.cpp')
-rw-r--r--src/modules/objects/class_painter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/objects/class_painter.cpp b/src/modules/objects/class_painter.cpp
index 9c510044..a291f9b6 100644
--- a/src/modules/objects/class_painter.cpp
+++ b/src/modules/objects/class_painter.cpp
@@ -407,8 +407,7 @@ if(__pXOrArray->isArray())\
} else {\
if(c->params()->count() < 4)\
{\
- TQString error=function+" requires either an array as first parameter or four integers";\
- c->error(__tr2qs(error));\
+ c->error(__tr2qs("%1 requires either an array as first parameter or four integers").arg(function));\
return false;\
}\
if(!__pXOrArray->asInteger(iX))\
@@ -441,8 +440,7 @@ if(__pXOrArray->isArray())\
} else {\
if(c->params()->count() < 2)\
{\
- TQString error=function+" requires either an array as first parameter or two integers";\
- c->error(__tr2qs(error));\
+ c->error(__tr2qs("%1 requires either an array as first parameter or two integers").arg(function));\
return false;\
}\
if(!__pXOrArray->asInteger(iX))\
@@ -476,8 +474,7 @@ if(__pCol1OrArray->isArray())\
} else {\
if(c->params()->count() < 3)\
{\
- TQString error=function+" requires either an array as first parameter or 3 integers";\
- c->error(__tr2qs(error));\
+ c->error(__tr2qs("%1 requires either an array as first parameter or 3 integers").arg(function));\
return false;\
}\
if(!__pCol1OrArray->asInteger(iCol1))\