diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2020-11-02 22:33:43 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2020-11-05 18:50:24 +0100 |
| commit | aca58384d909cd450bae59a6f46679d8cbb3606a (patch) | |
| tree | 570e5f599175ac15434d0c87a5a4173a3ade0c55 /microbe/main.cpp | |
| parent | 26de10618a0767658160762b87f1ec2c9c1cbc26 (diff) | |
| download | ktechlab-aca58384d909cd450bae59a6f46679d8cbb3606a.tar.gz ktechlab-aca58384d909cd450bae59a6f46679d8cbb3606a.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 <slavek.banko@axis.cz>
(cherry picked from commit 2c73ccdf45212ab2a43582955be0eff21c70f971)
Diffstat (limited to 'microbe/main.cpp')
| -rw-r--r-- | microbe/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/microbe/main.cpp b/microbe/main.cpp index 7b6d5ab..affa666 100644 --- a/microbe/main.cpp +++ b/microbe/main.cpp @@ -64,14 +64,14 @@ int main(int argc, char **argv) if ( !errorReport.isEmpty() ) { - cerr << mb.errorReport(); + cerr << mb.errorReport().local8Bit(); return 1; // If there was an error, don't write the output to file. } else { ofstream out(args->arg(1)); - out << s; + out << s.local8Bit(); return 0; } } |
