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:
@@ -772,7 +772,7 @@ Words::FindBestMatches(BList* matches, const char* s)
|
|||||||
&& word_match(gCmpKey, testWord)
|
&& word_match(gCmpKey, testWord)
|
||||||
<= int32(float(strlen(gCmpKey)-1)*.75)) {
|
<= int32(float(strlen(gCmpKey)-1)*.75)) {
|
||||||
// printf("Added: %s\n", testWord);
|
// printf("Added: %s\n", testWord);
|
||||||
matches->AddItem((void*)(new BString(testWord)));
|
matches->AddItem(new BString(testWord));
|
||||||
}
|
}
|
||||||
|
|
||||||
// If suffix, transform and test
|
// If suffix, transform and test
|
||||||
|
|||||||
Reference in New Issue
Block a user