summaryrefslogtreecommitdiffstats
path: root/webkit/api/src/WebStorageAreaImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/api/src/WebStorageAreaImpl.cpp')
-rw-r--r--webkit/api/src/WebStorageAreaImpl.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/webkit/api/src/WebStorageAreaImpl.cpp b/webkit/api/src/WebStorageAreaImpl.cpp
index 4e46f54..f24bee3 100644
--- a/webkit/api/src/WebStorageAreaImpl.cpp
+++ b/webkit/api/src/WebStorageAreaImpl.cpp
@@ -40,7 +40,7 @@
namespace WebKit {
-const WebURL* WebStorageAreaImpl::storageEventURL = NULL;
+const WebURL* WebStorageAreaImpl::storageEventURL = 0;
WebStorageAreaImpl::WebStorageAreaImpl(PassRefPtr<WebCore::StorageArea> storageArea)
: m_storageArea(storageArea)
@@ -73,12 +73,11 @@ void WebStorageAreaImpl::setItem(const WebString& key, const WebString& value, c
ScopedStorageEventURL scope(url);
m_storageArea->setItem(key, value, exceptionCode, 0);
- if (exceptionCode != 0) {
+ if (exceptionCode) {
ASSERT(exceptionCode == WebCore::QUOTA_EXCEEDED_ERR);
quotaException = true;
- } else {
+ } else
quotaException = false;
- }
}
void WebStorageAreaImpl::removeItem(const WebString& key, const WebURL& url)