Changeset 147187 in webkit


Ignore:
Timestamp:
Mar 28, 2013 5:50:18 PM (11 years ago)
Author:
pdr@google.com
Message:

Fix compiler warning in IDBTransaction::modeToString
https://bugs.webkit.org/show_bug.cgi?id=113547

Reviewed by Darin Adler.

Not all compilers are smart enough to handle this switch. This patch refactors
modeToString to not return from the default case.

No new tests as this is just a compiler fix.

  • Modules/indexeddb/IDBTransaction.cpp:

(WebCore::IDBTransaction::modeToString):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147186 r147187  
     12013-03-28  Philip Rogers  <pdr@google.com>
     2
     3        Fix compiler warning in IDBTransaction::modeToString
     4        https://bugs.webkit.org/show_bug.cgi?id=113547
     5
     6        Reviewed by Darin Adler.
     7
     8        Not all compilers are smart enough to handle this switch. This patch refactors
     9        modeToString to not return from the default case.
     10
     11        No new tests as this is just a compiler fix.
     12
     13        * Modules/indexeddb/IDBTransaction.cpp:
     14        (WebCore::IDBTransaction::modeToString):
     15
    1162013-03-28  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp

    r147029 r147187  
    363363        return IDBTransaction::modeVersionChange();
    364364        break;
    365 
    366     default:
    367         ASSERT_NOT_REACHED();
    368         return IDBTransaction::modeReadOnly();
    369     }
     365    }
     366
     367    ASSERT_NOT_REACHED();
     368    return IDBTransaction::modeReadOnly();
    370369}
    371370
Note: See TracChangeset for help on using the changeset viewer.