Changeset 64816 in webkit


Ignore:
Timestamp:
Aug 5, 2010 10:08:34 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-08-05 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Laszlo Gombos.

[Qt] Temporary files should not be created in the current directory
https://bugs.webkit.org/show_bug.cgi?id=43562

Don't create temporary files in the current directory, use QDir::tempPath()
instead, as suggested by the QTemporaryFile documentation.

  • platform/qt/FileSystemQt.cpp: (WebCore::openTemporaryFile):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64814 r64816  
     12010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Laszlo Gombos.
     4
     5        [Qt] Temporary files should not be created in the current directory
     6        https://bugs.webkit.org/show_bug.cgi?id=43562
     7
     8        Don't create temporary files in the current directory, use QDir::tempPath()
     9        instead, as suggested by the QTemporaryFile documentation.
     10
     11        * platform/qt/FileSystemQt.cpp:
     12        (WebCore::openTemporaryFile):
     13
    1142010-08-05  François Sausset  <sausset@gmail.com>
    215
  • trunk/WebCore/platform/qt/FileSystemQt.cpp

    r60747 r64816  
    117117{
    118118#ifndef QT_NO_TEMPORARYFILE
    119     QTemporaryFile* tempFile = new QTemporaryFile(QLatin1String(prefix));
     119    QTemporaryFile* tempFile = new QTemporaryFile(QDir::tempPath() + QLatin1Char('/') + QLatin1String(prefix));
    120120    tempFile->setAutoRemove(false);
    121121    QFile* temp = tempFile;
Note: See TracChangeset for help on using the changeset viewer.