[Qt][WK2] Compute and set cache capacities using the current CacheModel
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Feb 2012 14:32:35 +0000 (14:32 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Feb 2012 14:32:35 +0000 (14:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=73918

Patch by Michael BrĂ¼ning <michael.bruning@nokia.com> on 2012-02-07
Reviewed by Kenneth Rohde Christiansen.

No new tests. (build fix)

* platform/qt/FileSystemQt.cpp:
(WebCore::getVolumeFreeSizeForPath):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106933 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/qt/FileSystemQt.cpp

index c0714d1..4e37512 100644 (file)
@@ -1,3 +1,15 @@
+2012-02-07  Michael BrĂ¼ning  <michael.bruning@nokia.com>
+
+        [Qt][WK2] Compute and set cache capacities using the current CacheModel
+        https://bugs.webkit.org/show_bug.cgi?id=73918
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        No new tests. (build fix)
+
+        * platform/qt/FileSystemQt.cpp:
+        (WebCore::getVolumeFreeSizeForPath):
+
 2012-02-07  Pavel Feldman  <pfeldman@google.com>
 
         Web Inspector: add generic support for undo-ing DOM edits.
index be67dea..4623748 100644 (file)
@@ -200,7 +200,7 @@ uint64_t getVolumeFreeSizeForPath(const char* path)
     BOOL result = GetDiskFreeSpaceExW((LPCWSTR)path, &freeBytesToCaller, 0, 0);
     if (!result)
         return 0;
-    return static_cast<uint64_t>freeBytesToCaller.QuadPart;
+    return static_cast<uint64_t>(freeBytesToCaller.QuadPart);
 #else
     struct statvfs volumeInfo;
     if (statvfs(path, &volumeInfo))