summaryrefslogtreecommitdiffstats
path: root/WebKit/chromium/public/WebIDBDatabaseError.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/chromium/public/WebIDBDatabaseError.h')
-rw-r--r--WebKit/chromium/public/WebIDBDatabaseError.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebKit/chromium/public/WebIDBDatabaseError.h b/WebKit/chromium/public/WebIDBDatabaseError.h
index 255d175..a237d5f 100644
--- a/WebKit/chromium/public/WebIDBDatabaseError.h
+++ b/WebKit/chromium/public/WebIDBDatabaseError.h
@@ -40,7 +40,7 @@ namespace WebKit {
// See comment in WebIndexedDatabase for a high level overview these classes.
class WebIDBDatabaseError {
public:
- WEBKIT_API ~WebIDBDatabaseError();
+ ~WebIDBDatabaseError() { reset(); }
WEBKIT_API WebIDBDatabaseError(unsigned short code, const WebString& message) { assign(code, message); }
WEBKIT_API WebIDBDatabaseError(const WebIDBDatabaseError& e) { assign(e); }
@@ -51,6 +51,7 @@ public:
}
WEBKIT_API void assign(const WebIDBDatabaseError&);
+ WEBKIT_API void reset();
WEBKIT_API unsigned short code() const;
WEBKIT_API WebString message() const;