Commit 13337c50 authored by Marc Mutz's avatar Marc Mutz
Browse files

QTranslator: enable NRVO in find_translation() for poor compilers


... such as GCC.

truncate(0) was chosen because it is already used throughout
the function. Using clear(), say, which is inline, produces
slightly more code.

As is, saves 160b in text size on optimized GCC 4.9 Linux
AMD64 builds.

Change-Id: I415d09ad2b4547f1d69f78d85e2aa1c1f9a17ed3
Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Showing with 2 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment