Changeset 31461 in webkit


Ignore:
Timestamp:
Mar 31, 2008 9:53:33 AM (16 years ago)
Author:
Adam Roben
Message:

Remove PlatformFileTime

This typedef is time_t on all platforms, so we can just get rid of the
typedef.

Reviewed by Mitz Pettel.

  • platform/FileSystem.h:
  • plugins/PluginPackage.cpp:
  • plugins/PluginPackage.h:
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r31460 r31461  
     12008-03-29  Adam Roben  <aroben@apple.com>
     2
     3        Remove PlatformFileTime
     4
     5        This typedef is time_t on all platforms, so we can just get rid of the
     6        typedef.
     7
     8        Reviewed by Mitz Pettel.
     9
     10        * platform/FileSystem.h:
     11        * plugins/PluginPackage.cpp:
     12        * plugins/PluginPackage.h:
     13
    1142008-03-29  Adam Roben  <aroben@apple.com>
    215
  • trunk/WebCore/platform/FileSystem.h

    r31460 r31461  
    4848#if PLATFORM(WIN)
    4949typedef HANDLE PlatformFileHandle;
    50 typedef time_t PlatformFileTime;
    5150typedef HMODULE PlatformModule;
    5251const PlatformFileHandle invalidPlatformFileHandle = INVALID_HANDLE_VALUE;
     
    7170#else
    7271typedef int PlatformFileHandle;
    73 typedef time_t PlatformFileTime;
    7472#if PLATFORM(GTK)
    7573typedef GModule* PlatformModule;
  • trunk/WebCore/plugins/PluginPackage.cpp

    r31459 r31461  
    5959}
    6060
    61 PluginPackage::PluginPackage(const String& path, const PlatformFileTime& lastModified)
     61PluginPackage::PluginPackage(const String& path, const time_t& lastModified)
    6262    : m_path(path)
    6363    , m_moduleVersion(0)
     
    104104}
    105105
    106 PassRefPtr<PluginPackage> PluginPackage::createPackage(const String& path, const PlatformFileTime& lastModified)
     106PassRefPtr<PluginPackage> PluginPackage::createPackage(const String& path, const time_t& lastModified)
    107107{
    108108    RefPtr<PluginPackage> package = adoptRef(new PluginPackage(path, lastModified));
  • trunk/WebCore/plugins/PluginPackage.h

    r31459 r31461  
    4444    public:
    4545        ~PluginPackage();
    46         static PassRefPtr<PluginPackage> createPackage(const String& path, const PlatformFileTime& lastModified);
     46        static PassRefPtr<PluginPackage> createPackage(const String& path, const time_t& lastModified);
    4747       
    4848        String name() const { return m_name; }
     
    6868
    6969    private:
    70         PluginPackage(const String& path, const PlatformFileTime& lastModified);
     70        PluginPackage(const String& path, const time_t& lastModified);
    7171        bool fetchInfo();
    7272        bool isPluginBlacklisted();
     
    8888
    8989        PlatformModule m_module;
    90         PlatformFileTime m_lastModified;
     90        time_t m_lastModified;
    9191
    9292        NPP_ShutdownProcPtr m_NPP_Shutdown;
Note: See TracChangeset for help on using the changeset viewer.