Bug 1668926 - fix member initialization in nsMessenger::nsFilePickerShownCallback::nsFilePickerShownCallback. r=benc

CID 1416479 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member mResult is not initialized in this constructor nor in any functions that it calls.

Differential Revision: https://phabricator.services.mozilla.com/D111623

--HG--
extra : rebase_source : d6bc34342d31465bdaaf2e7573959e81a5ecc746
This commit is contained in:
Magnus Melin 2021-04-11 22:12:02 +03:00
Родитель 7cf5120e98
Коммит 4beba4c533
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -288,6 +288,7 @@ NS_IMETHODIMP nsMessenger::SetDisplayCharset(const nsACString& aCharset) {
NS_IMPL_ISUPPORTS(nsMessenger::nsFilePickerShownCallback,
nsIFilePickerShownCallback)
nsMessenger::nsFilePickerShownCallback::nsFilePickerShownCallback() {
mResult = nsIFilePicker::returnOK;
mPickerDone = false;
}