summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_painter.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-02-21 11:03:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-02-22 20:26:55 +0900
commit16d42ec4616a84b046cd71f805a009b792a93ec9 (patch)
tree1522d1dd06ecd32e6c61d142b88d4b4814b83950 /src/modules/objects/class_painter.cpp
parenta09cecfffd5151adfc50e343c821ed8ebdd1ab87 (diff)
downloadkvirc-16d42ec4616a84b046cd71f805a009b792a93ec9.tar.gz
kvirc-16d42ec4616a84b046cd71f805a009b792a93ec9.zip
Fix conversion of TQString to const char* (modules)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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))\