From 2c73ccdf45212ab2a43582955be0eff21c70f971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 2 Nov 2020 22:33:43 +0100 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/view.cpp') diff --git a/src/view.cpp b/src/view.cpp index 81f88b7..52d2417 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -61,7 +61,7 @@ class KVSSBSep : public TQWidget { //BEGIN class View View::View( Document *document, ViewContainer *viewContainer, uint viewAreaId, const char *name ) - : TQWidget( viewContainer->viewArea(viewAreaId), name ? name : (const char *)("view_" + TQString::number(viewAreaId)) ), + : TQWidget( viewContainer->viewArea(viewAreaId), name ? name : TQString("view_%1").arg(TQString::number(viewAreaId)).latin1() ), KXMLGUIClient() { m_dcopID = 0; @@ -103,7 +103,7 @@ View::~View() TDEAction * View::action( const TQString & name ) const { - TDEAction * action = actionCollection()->action(name); + TDEAction * action = actionCollection()->action(name.utf8()); if ( !action ) kdError() << k_funcinfo << "No such action: " << name << endl; return action; -- cgit v1.2.1