input/MouseSettings: Fix return to NULL per clang
* This looks wrong, but is functionally equal. * Supposed to return a MouseSettings*, but returned a B_OK (0) on a seemingly error result (NULL). Change-Id: Id6c50369790b90e38fd6ec037c466c5fb314edf5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3303 Reviewed-by: Adrien Destugues <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
e43fabeb86
commit
5646b99778
@@ -422,12 +422,12 @@ MultipleMouseSettings::AddMouseSettings(BString mouse_name)
|
||||
|
||||
MouseSettings* settings = new (std::nothrow) MouseSettings();
|
||||
|
||||
if(settings !=NULL) {
|
||||
if(settings != NULL) {
|
||||
fMouseSettingsObject.insert(std::pair<BString, MouseSettings*>
|
||||
(mouse_name, settings));
|
||||
return settings;
|
||||
}
|
||||
return B_OK;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user