Tracker: Fix -Wlogical-not-parentheses

Signed-off-by: Adrien Destugues <[email protected]>

With style fix: comparison must still be a boolean value.

Fixes #12892
This commit is contained in:
Murai Takashi
2016-08-21 16:53:42 +02:00
committed by Adrien Destugues
parent d3c5c6dfeb
commit 777ff37166
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ NodePreloader::PreloadOne(const char* dirPath)
{
//PRINT(("preloading directory %s\n", dirPath));
BDirectory dir(dirPath);
if (!dir.InitCheck() == B_OK)
if (dir.InitCheck() != B_OK)
return;
node_ref nodeRef;
+1 -1
View File
@@ -636,7 +636,7 @@ AddOneRefSignatures(const entry_ref* ref, void* castToIterator)
mimeType = model.MimeType();
mimeType.ToLower();
if (mimeType.Length() && !mimeType.ICompare(B_FILE_MIMETYPE) == 0)
if (mimeType.Length() && mimeType.ICompare(B_FILE_MIMETYPE) != 0)
queryIterator->NonGenericFileFound();
// get supporting apps for type