Ticket #12995: 0038-Database.cpp-Fix-int-in-bool-context-warning.patch

File 0038-Database.cpp-Fix-int-in-bool-context-warning.patch, 1.1 KB (added by mt, 4 years ago)
  • src/kits/storage/mime/Database.cpp

    From 2c9ee92e44890a7a525a6d8af59144ec5887f983 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Sun, 9 Oct 2016 20:04:08 +0900
    Subject: [PATCH 38/38] Database.cpp: Fix int-in-bool-context warning.
    
    ---
     src/kits/storage/mime/Database.cpp | 5 +++--
     1 file changed, 3 insertions(+), 2 deletions(-)
    
    diff --git a/src/kits/storage/mime/Database.cpp b/src/kits/storage/mime/Database.cpp
    index c176f3d..abd5ad2 100644
    a b Database::DeleteIcon(const char *type, icon_size which)  
    11351135status_t
    11361136Database::DeleteIcon(const char *type)
    11371137{
    1138     // TODO: extra notification for vector icon (uses B_LARGE_ICON now)
     1138    // TODO: extra notification for vector icon (currently passing "true"
     1139    // for B_LARGE_ICON)
    11391140    status_t status = fLocation->DeleteAttribute(type, kIconAttr);
    11401141    if (status == B_OK) {
    1141         _SendMonitorUpdate(B_ICON_CHANGED, type, B_LARGE_ICON,
     1142        _SendMonitorUpdate(B_ICON_CHANGED, type, true,
    11421143                           B_META_MIME_DELETED);
    11431144    } else if (status == B_ENTRY_NOT_FOUND)
    11441145        status = B_OK;