summaryrefslogtreecommitdiffstats
path: root/microbe/main.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-11-02 22:33:43 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-11-02 22:33:47 +0100
commit2c73ccdf45212ab2a43582955be0eff21c70f971 (patch)
tree4754dd610c96338dc39ca60e38a7e794ef6c6966 /microbe/main.cpp
parentf23df438132393cf20cb93f9922325dc49792573 (diff)
downloadktechlab-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 <slavek.banko@axis.cz>
Diffstat (limited to 'microbe/main.cpp')
-rw-r--r--microbe/main.cpp4
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;
}
}