Commit 1c26006e authored by hausmann@webkit.org's avatar hausmann@webkit.org

Simon Hausmann <hausmann@webkit.org>

Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
it yields undefined behaviour or wrong default codec initialization.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1421d0c5
2008-04-15 Simon Hausmann <hausmann@webkit.org>
Reviewed by Holger.
Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
it yields undefined behaviour or wrong default codec initialization.
* QtLauncher/main.cpp:
(WebPage::createWindow):
2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
Reviewed by Simon.
......
......@@ -384,8 +384,8 @@ QWebPage *WebPage::createWindow()
int main(int argc, char **argv)
{
QString url = QString("%1/%2").arg(QDir::homePath()).arg(QLatin1String("index.html"));
QApplication app(argc, argv);
QString url = QString("%1/%2").arg(QDir::homePath()).arg(QLatin1String("index.html"));
QWebSettings::setPageCacheCapacity(4);
QWebSettings::setObjectCacheCapacities((16*1024*1024)/8, (16*1024*1024)/8, 16*1024*1024);
......
Markdown is supported
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