Changeset 215580 in webkit


Ignore:
Timestamp:
Apr 20, 2017 2:56:46 PM (7 years ago)
Author:
Michael Catanzaro
Message:

-Wformat warning on HistoryController.cpp:295:5
https://bugs.webkit.org/show_bug.cgi?id=171028

Reviewed by Daniel Bates.

Need to cast WebCore::FrameLoadType to int before using it in printf.

  • loader/HistoryController.cpp:

(WebCore::HistoryController::goToItem):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r215579 r215580  
     12017-04-20  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        -Wformat warning on HistoryController.cpp:295:5
     4        https://bugs.webkit.org/show_bug.cgi?id=171028
     5
     6        Reviewed by Daniel Bates.
     7
     8        Need to cast WebCore::FrameLoadType to int before using it in printf.
     9
     10        * loader/HistoryController.cpp:
     11        (WebCore::HistoryController::goToItem):
     12
    1132017-04-20  Per Arne Vollan  <pvollan@apple.com>
    214
  • trunk/Source/WebCore/loader/HistoryController.cpp

    r215446 r215580  
    293293void HistoryController::goToItem(HistoryItem& targetItem, FrameLoadType type)
    294294{
    295     LOG(History, "HistoryController %p goToItem %p type=%d", this, &targetItem, type);
     295    LOG(History, "HistoryController %p goToItem %p type=%d", this, &targetItem, static_cast<int>(type));
    296296
    297297    ASSERT(!m_frame.tree().parent());
Note: See TracChangeset for help on using the changeset viewer.