diff options
author | Slávek Banko <[email protected]> | 2021-03-14 00:44:07 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-03-14 17:34:48 +0100 |
commit | 25cb1249e4fe72eec2474dc4d4c1e21605f52dc1 (patch) | |
tree | 3b199e61fa6052e51cdec6edc02bf76ce9d1a241 /kdbg/dbgdriver.cpp | |
parent | 869f7d92e154f33fb30d60fd4558c289f4178e95 (diff) | |
download | kdbg-25cb1249e4fe72eec2474dc4d4c1e21605f52dc1.tar.gz kdbg-25cb1249e4fe72eec2474dc4d4c1e21605f52dc1.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]>
(cherry picked from commit 627fc0ed620c1942afea9483bfaba794418d0300)
Diffstat (limited to 'kdbg/dbgdriver.cpp')
-rw-r--r-- | kdbg/dbgdriver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kdbg/dbgdriver.cpp b/kdbg/dbgdriver.cpp index 95bd843..eb6bbf1 100644 --- a/kdbg/dbgdriver.cpp +++ b/kdbg/dbgdriver.cpp @@ -220,12 +220,12 @@ void DebuggerDriver::writeCommand() m_activeCmd = cmd; TRACE("in writeCommand: " + cmd->m_cmdString); - const char* str = cmd->m_cmdString; - writeStdin(const_cast<char*>(str), cmd->m_cmdString.length()); + const char* str = cmd->m_cmdString.local8Bit(); + writeStdin(str, cmd->m_cmdString.local8Bit().length()); // write also to log file if (m_logFile.isOpen()) { - m_logFile.writeBlock(str, cmd->m_cmdString.length()); + m_logFile.writeBlock(str, cmd->m_cmdString.local8Bit().length()); m_logFile.flush(); } |