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)
|
1135 | 1135 | status_t |
1136 | 1136 | Database::DeleteIcon(const char *type) |
1137 | 1137 | { |
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) |
1139 | 1140 | status_t status = fLocation->DeleteAttribute(type, kIconAttr); |
1140 | 1141 | if (status == B_OK) { |
1141 | | _SendMonitorUpdate(B_ICON_CHANGED, type, B_LARGE_ICON, |
| 1142 | _SendMonitorUpdate(B_ICON_CHANGED, type, true, |
1142 | 1143 | B_META_MIME_DELETED); |
1143 | 1144 | } else if (status == B_ENTRY_NOT_FOUND) |
1144 | 1145 | status = B_OK; |