From aca58384d909cd450bae59a6f46679d8cbb3606a 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 (cherry picked from commit 2c73ccdf45212ab2a43582955be0eff21c70f971) --- microbe/instruction.cpp | 6 +++--- microbe/main.cpp | 4 ++-- microbe/pic14.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'microbe') diff --git a/microbe/instruction.cpp b/microbe/instruction.cpp index 26332c0..2a77b98 100644 --- a/microbe/instruction.cpp +++ b/microbe/instruction.cpp @@ -517,8 +517,8 @@ bool RegisterState::operator == ( const RegisterState & state ) const void RegisterState::print() { - cout << " known="<arg(1)); - out << s; + out << s.local8Bit(); return 0; } } diff --git a/microbe/pic14.cpp b/microbe/pic14.cpp index 5c92ef3..1ac4c27 100644 --- a/microbe/pic14.cpp +++ b/microbe/pic14.cpp @@ -135,7 +135,7 @@ PIC14::Type PIC14::toType( const TQString & _text ) if ( text == "16F628" ) return P16F628; - cerr << TQString("%1 is not a known PIC identifier\n").arg(_text); + cerr << TQString("%1 is not a known PIC identifier\n").arg(_text).local8Bit(); return unknown; } -- cgit v1.2.1