Changeset 139193 in webkit


Ignore:
Timestamp:
Jan 9, 2013 7:38:14 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

IndexedDB: Remove ASSERTs that can't assert but result in compiler warnings
https://bugs.webkit.org/show_bug.cgi?id=106442

Patch by Jussi Kukkonen <jussi.kukkonen@intel.com> on 2013-01-09
Reviewed by Kentaro Hara.

IDBLevelDBCoding::m_metaDataType has been changed to unsigned
so ASSERT(m_metaDataType >= 0) is no longer useful: the compiler
warnings however create build difficulties at least with EFL.

  • Modules/indexeddb/IDBLevelDBCoding.cpp:

(WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::metaDataType):
(WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::compare):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139192 r139193  
     12013-01-09  Jussi Kukkonen  <jussi.kukkonen@intel.com>
     2
     3        IndexedDB: Remove ASSERTs that can't assert but result in compiler warnings
     4        https://bugs.webkit.org/show_bug.cgi?id=106442
     5
     6        Reviewed by Kentaro Hara.
     7
     8        IDBLevelDBCoding::m_metaDataType has been changed to unsigned
     9        so ASSERT(m_metaDataType >= 0) is no longer useful: the compiler
     10        warnings however create build difficulties at least with EFL.
     11
     12        * Modules/indexeddb/IDBLevelDBCoding.cpp:
     13        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::metaDataType):
     14        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::compare):
     15
    1162012-12-29  Ilya Tikhonovsky  <loislo@chromium.org>
    217
  • trunk/Source/WebCore/Modules/indexeddb/IDBLevelDBCoding.cpp

    r136958 r139193  
    12241224unsigned char ObjectStoreMetaDataKey::metaDataType() const
    12251225{
    1226     ASSERT(m_metaDataType >= 0);
    12271226    return m_metaDataType;
    12281227}
     
    12311230{
    12321231    ASSERT(m_objectStoreId >= 0);
    1233     ASSERT(m_metaDataType >= 0);
    12341232    if (int x = compareInts(m_objectStoreId, other.m_objectStoreId))
    12351233        return x;
Note: See TracChangeset for help on using the changeset viewer.