From db7acc7c08b351cd7f0d8713759debf46ca14f67 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Wed, 6 Jun 2018 10:00:35 -0300 Subject: [PATCH] Qt str.append modifies the original string, which probably isn't what we want --- src/propelleride/compilers/externalcompiler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/propelleride/compilers/externalcompiler.cpp b/src/propelleride/compilers/externalcompiler.cpp index 9fa929a..265974e 100644 --- a/src/propelleride/compilers/externalcompiler.cpp +++ b/src/propelleride/compilers/externalcompiler.cpp @@ -75,9 +75,11 @@ QString ExternalCompiler::build(QString filename, QString basefile = infile; basefile.chop(pattern_in.size()); - QString outfile = basefile.append(pattern_out); - QString retfile = basefile.append(pattern_ret); + QString outfile = basefile; + QString retfile = basefile; + outfile += pattern_out; + retfile += pattern_ret; QString exepath = getExecutablePath();