Go to file
João Abecasis b3ca1d4a84 Use QStringBuilder when copying template for modification
This avoids modifying the original string in the case where a
placeholder marker is not found. By marking the variable const we
further avoid checks on the reference count and detaches, also allowing
us to safely reuse it later in the function.

The new approach also fixes an issue where suffix wasn't empty, but the
toLocal8Bit conversion would be. This resulted in a buffer overflow
inside createFileFromTemplate.

Reviewed-by: Shane Kearns
(cherry picked from commit d71d3b1ce31ffc585258330d825ff8ea535254ef)

Change-Id: I6cb3fbc6c653d8a881426fddbc433826365d4816
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
2011-10-21 22:20:03 +02:00
bin Teach syncqt to handle multiple %moduleheaders directories 2011-10-20 21:56:15 +02:00
config.tests Add multipoint touch support for Harmattan to the xcb platform plugin. 2011-10-17 18:03:13 +02:00
dist Rename QMetaType::construct() to create() 2011-10-11 16:01:45 +02:00
doc/src Remove QTest::SkipMode from qtestlib API. 2011-10-21 01:20:29 +02:00
examples Fix compilation on Harmattan 2011-10-21 16:54:45 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Fix shadow build error for qmltest 2011-10-21 01:20:29 +02:00
qmake qmake: Replace Q_WS_WIN by Q_OS_WIN 2011-10-21 12:34:50 +02:00
src Use QStringBuilder when copying template for modification 2011-10-21 22:20:03 +02:00
tests Remove SkipMode parameter from QSKIP calls. 2011-10-21 01:20:29 +02:00
tools Move a11y inspector from tools to util. 2011-10-20 02:31:45 +02:00
util Move a11y inspector from tools to util. 2011-10-20 02:31:45 +02:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Update .gitignore 2011-10-03 05:58:44 +02:00
.gitmodules Add QtV8 library to QtBase 2011-08-29 10:16:01 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Add multipoint touch support for Harmattan to the xcb platform plugin. 2011-10-17 18:03:13 +02:00
configure.exe New configure.exe binary 2011-09-05 08:55:31 +02:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Fix make confclean 2011-09-12 16:03:47 +02:00
sync.profile Remove uilib and QtUiTools from QtBase 2011-09-13 20:11:40 +02:00