Summary: | IndexedDB: Remove ASSERTs that can't assert but result in compiler warnings | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jussi Kukkonen (jku) <jussi.kukkonen> | ||||
Component: | WebCore Misc. | Assignee: | Jussi Kukkonen (jku) <jussi.kukkonen> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | alecflett, cdumez, haraken, jsbell, jussi.kukkonen, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Jussi Kukkonen (jku)
2013-01-09 04:32:32 PST
Created attachment 181896 [details]
Patch
How about this?
> ObjectStoreMetaDataKey::ObjectStoreMetaDataKey()
> : m_objectStoreId(-1)
> , m_metaDataType(-1)
> {
> }
Comment on attachment 181896 [details]
Patch
OK
(In reply to comment #2) > How about this? > > > ObjectStoreMetaDataKey::ObjectStoreMetaDataKey() > > : m_objectStoreId(-1) > > , m_metaDataType(-1) > > { > > } Good that you mentioned, I was planning to but forgot. It's ugly but should work, assuming that presents a metadatatype that does not exist: see "enum MetaDataType" in the header for the 'good' values of metadatatype. We could add a unsetObjectStoreMetaDataType but that shouldn't be part of this patch I guess. Comment on attachment 181896 [details]
Patch
Please fix the issue Christophe pointed out in a follow-up patch.
Comment on attachment 181896 [details] Patch Clearing flags on attachment: 181896 Committed r139193: <http://trac.webkit.org/changeset/139193> All reviewed patches have been landed. Closing bug. |