diff options
author | Slávek Banko <[email protected]> | 2020-11-02 22:33:43 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-11-02 22:33:47 +0100 |
commit | 2c73ccdf45212ab2a43582955be0eff21c70f971 (patch) | |
tree | 4754dd610c96338dc39ca60e38a7e794ef6c6966 /src/view.cpp | |
parent | f23df438132393cf20cb93f9922325dc49792573 (diff) | |
download | ktechlab-2c73ccdf45212ab2a43582955be0eff21c70f971.tar.gz ktechlab-2c73ccdf45212ab2a43582955be0eff21c70f971.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/view.cpp')
-rw-r--r-- | src/view.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |