Closed Bug 106941 Opened 24 years ago Closed 24 years ago

Profile.cpp using nsIPref - not nsIPrefService

Categories

(Core :: Preferences: Backend, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: chipc, Assigned: bnesse)

References

Details

Attachments

(2 files)

This is part of a larger clean up project to move from nsIPref to nsIPrefService and nsIPrefBranch
requesting r= sr=
Whiteboard: requesting r= and sr=
Blocks: 68946
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 55253 [details] [diff] [review] diff for Profile.cpp (cvs -q diff -uN mozilla/profile) look at the logic in nsProfile::LoadDefaultProfileDir() you'll see that the extra if (NS_FAILED(rv)) is totally unnecessary. There's a similar issue in ConfirmAutoMigration
Attachment #55253 - Flags: needs-work+
Yes, in both cases it would probably just be better to do a if (NS_FAILED(rv)) return(rv); rather than testing if (NS_SUCCEEDED(rv))
Comment on attachment 55303 [details] [diff] [review] Profile.cpp - removing extra(unnecessary) if statements Much cleaner. :) r=bnesse.
Attachment #55303 - Flags: review+
Comment on attachment 55303 [details] [diff] [review] Profile.cpp - removing extra(unnecessary) if statements agreed. sr=alecf
Attachment #55303 - Flags: superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: requesting r= and sr=
rs vrfy by checking lxr.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: