Closed
Bug 106941
Opened 24 years ago
Closed 24 years ago
Profile.cpp using nsIPref - not nsIPrefService
Categories
(Core :: Preferences: Backend, defect)
Core
Preferences: Backend
Tracking
()
VERIFIED
FIXED
People
(Reporter: chipc, Assigned: bnesse)
References
Details
Attachments
(2 files)
|
3.16 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.15 KB,
patch
|
bnesse
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
This is part of a larger clean up project to move from nsIPref to nsIPrefService
and nsIPrefBranch
| Reporter | ||
Comment 1•24 years ago
|
||
Updated•24 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•24 years ago
|
||
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+
| Assignee | ||
Comment 4•24 years ago
|
||
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))
| Reporter | ||
Comment 5•24 years ago
|
||
| Assignee | ||
Comment 6•24 years ago
|
||
Comment on attachment 55303 [details] [diff] [review]
Profile.cpp - removing extra(unnecessary) if statements
Much cleaner. :) r=bnesse.
Attachment #55303 -
Flags: review+
Comment 7•24 years ago
|
||
Comment on attachment 55303 [details] [diff] [review]
Profile.cpp - removing extra(unnecessary) if statements
agreed. sr=alecf
Attachment #55303 -
Flags: superreview+
| Assignee | ||
Comment 8•24 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: requesting r= and sr=
You need to log in
before you can comment on or make changes to this bug.
Description
•