summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/sqldatabase/sqldatabase.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-08-09 11:02:33 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-08-09 17:45:26 (GMT)
commit9a3e7c9c32167b777a090ee13082323d10895694 (patch)
treeb102cb2dca1feafd45af99787463427b4498601e /doc/src/snippets/sqldatabase/sqldatabase.cpp
parent2e7d5def1fdabb5949fbffc629da500aa2bb78d7 (diff)
downloadQt-9a3e7c9c32167b777a090ee13082323d10895694.zip
Qt-9a3e7c9c32167b777a090ee13082323d10895694.tar.gz
Qt-9a3e7c9c32167b777a090ee13082323d10895694.tar.bz2
Fix minor premature pessimizations in file engine creation
QAbstractFileEngineHandler ctor adds itself once to handler list, dtor should not try to be any smarter. Repeatedly calling the global static "constructor" fileEngineHandlers() could lead to additional overhead while checking for repeated construction -- that said, compilers can probably figure this one out, but being explicit shouldn't hurt. Reduce string manipulation and copying. Also, prefer QStringBuilder to building strings by hand. Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'doc/src/snippets/sqldatabase/sqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions