summaryrefslogtreecommitdiffstats
path: root/kdbg/dbgdriver.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-03-14 00:44:07 +0100
committerSlávek Banko <[email protected]>2021-03-14 17:34:48 +0100
commit25cb1249e4fe72eec2474dc4d4c1e21605f52dc1 (patch)
tree3b199e61fa6052e51cdec6edc02bf76ce9d1a241 /kdbg/dbgdriver.cpp
parent869f7d92e154f33fb30d60fd4558c289f4178e95 (diff)
downloadkdbg-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.cpp6
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();
}