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:
committed by
Adrien Destugues
parent
d3c5c6dfeb
commit
777ff37166
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user