mail: Fix PVS 962

* Remove cast to void* in AddItem() at line 775, so that
avoid that the object which was created using 'new' operator
is immediately cast to another type.

Change-Id: I0722661611d0393896c1aac161a702a4c2f1d5d8
Reviewed-on: https://review.haiku-os.org/c/857
Reviewed-by: Barrett17 <[email protected]>
This commit is contained in:
Murai Takashi
2019-01-07 12:24:24 +00:00
committed by Barrett17
parent 27a59a2fa4
commit 808cc3cd50
+1 -1
View File
@@ -772,7 +772,7 @@ Words::FindBestMatches(BList* matches, const char* s)
&& word_match(gCmpKey, testWord)
<= int32(float(strlen(gCmpKey)-1)*.75)) {
// printf("Added: %s\n", testWord);
matches->AddItem((void*)(new BString(testWord)));
matches->AddItem(new BString(testWord));
}
// If suffix, transform and test