Changeset 148199 in webkit


Ignore:
Timestamp:
Apr 11, 2013 7:27:14 AM (11 years ago)
Author:
anilsson@rim.com
Message:

[BlackBerry] Compiler warning in LayerWebKitThread.cpp
https://bugs.webkit.org/show_bug.cgi?id=114277

Reviewed by Carlos Garcia Campos.

All the relevant WTF::Vector APIs use size_t, storing the position in
an int resulted in a compiler warning. Fixed by switching to size_t.

No change in behavior, no new tests.

PR 323753

  • platform/graphics/blackberry/LayerWebKitThread.cpp:

(WebCore::LayerWebKitThread::remove):
(WebCore::LayerWebKitThread::replaceSublayer):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148197 r148199  
     12013-04-11  Arvid Nilsson  <anilsson@rim.com>
     2
     3        [BlackBerry] Compiler warning in LayerWebKitThread.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=114277
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        All the relevant WTF::Vector APIs use size_t, storing the position in
     9        an int resulted in a compiler warning. Fixed by switching to size_t.
     10
     11        No change in behavior, no new tests.
     12
     13        PR 323753
     14
     15        * platform/graphics/blackberry/LayerWebKitThread.cpp:
     16        (WebCore::LayerWebKitThread::remove):
     17        (WebCore::LayerWebKitThread::replaceSublayer):
     18
    1192013-04-11  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
    220
  • trunk/Source/WebCore/platform/graphics/blackberry/LayerWebKitThread.cpp

    r145363 r148199  
    342342void LayerWebKitThread::remove(Vector<RefPtr<LayerWebKitThread> >& vector, LayerWebKitThread* sublayer)
    343343{
    344     int foundIndex = vector.find(sublayer);
     344    size_t foundIndex = vector.find(sublayer);
    345345    if (foundIndex == notFound)
    346346        return;
     
    360360        return;
    361361
    362     int referenceIndex = m_sublayers.find(reference);
     362    size_t referenceIndex = m_sublayers.find(reference);
    363363    if (referenceIndex == notFound) {
    364364        ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.