Title: [86772] trunk/Source/WebCore
Revision
86772
Author
[email protected]
Date
2011-05-18 09:12:51 -0700 (Wed, 18 May 2011)

Log Message

2011-05-18  Pratik Solanki  <[email protected]>

        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.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (86771 => 86772)


--- trunk/Source/WebCore/ChangeLog	2011-05-18 16:08:39 UTC (rev 86771)
+++ trunk/Source/WebCore/ChangeLog	2011-05-18 16:12:51 UTC (rev 86772)
@@ -1,3 +1,14 @@
+2011-05-18  Pratik Solanki  <[email protected]>
+
+        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.
+
 2011-05-18  Rob Buis  <[email protected]>
 
         Reviewed by Nikolas Zimmermann.

Modified: trunk/Source/WebCore/storage/StorageTracker.cpp (86771 => 86772)


--- trunk/Source/WebCore/storage/StorageTracker.cpp	2011-05-18 16:08:39 UTC (rev 86771)
+++ trunk/Source/WebCore/storage/StorageTracker.cpp	2011-05-18 16:12:51 UTC (rev 86772)
@@ -195,7 +195,7 @@
     m_databaseGuard.lock();
     DEFINE_STATIC_LOCAL(const String, fileMatchPattern, ("*.localstorage"));
     DEFINE_STATIC_LOCAL(const String, fileExt, (".localstorage"));
-    DEFINE_STATIC_LOCAL(const unsigned, fileExtLength, (fileExt.length()));
+    static const unsigned fileExtLength = fileExt.length();
     m_databaseGuard.unlock();
 
     Vector<String> paths;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to