Changeset 86772 in webkit


Ignore:
Timestamp:
May 18, 2011 9:12:51 AM (13 years ago)
Author:
psolanki@apple.com
Message:

2011-05-18 Pratik Solanki <psolanki@apple.com>

Reviewed by Dan Bernstein.

Don't use DEFINE_STATIC_LOCAL with an unsigned
https://bugs.webkit.org/show_bug.cgi?id=61026

  • storage/StorageTracker.cpp: (WebCore::StorageTracker::syncFileSystemAndTrackerDatabase): DEFINE_STATIC_LOCAL is meant for objects, not unsigned ints. We can just use static here.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86771 r86772  
     12011-05-18  Pratik Solanki  <psolanki@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Don't use DEFINE_STATIC_LOCAL with an unsigned
     6        https://bugs.webkit.org/show_bug.cgi?id=61026
     7
     8        * storage/StorageTracker.cpp:
     9        (WebCore::StorageTracker::syncFileSystemAndTrackerDatabase): DEFINE_STATIC_LOCAL is meant
     10        for objects, not unsigned ints. We can just use static here.
     11
    1122011-05-18  Rob Buis  <rbuis@rim.com>
    213
  • trunk/Source/WebCore/storage/StorageTracker.cpp

    r86371 r86772  
    196196    DEFINE_STATIC_LOCAL(const String, fileMatchPattern, ("*.localstorage"));
    197197    DEFINE_STATIC_LOCAL(const String, fileExt, (".localstorage"));
    198     DEFINE_STATIC_LOCAL(const unsigned, fileExtLength, (fileExt.length()));
     198    static const unsigned fileExtLength = fileExt.length();
    199199    m_databaseGuard.unlock();
    200200
Note: See TracChangeset for help on using the changeset viewer.