From 16d42ec4616a84b046cd71f805a009b792a93ec9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 21 Feb 2026 11:03:45 +0900 Subject: Fix conversion of TQString to const char* (modules) Signed-off-by: Michele Calgaro --- src/modules/objects/class_painter.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/modules/objects/class_painter.cpp') 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))\ -- cgit v1.2.3