Closed
Bug 92569
Opened 23 years ago
Closed 23 years ago
nsLocalFileUnix needs general clean up. [FIX] {PATCH]
Categories
(Core :: XPCOM, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla0.9.7
People
(Reporter: pete, Assigned: pete)
References
Details
Attachments
(4 files, 4 obsolete files)
14.71 KB,
patch
|
dougt
:
review+
brendan
:
superreview+
|
Details | Diff | Splinter Review |
14.71 KB,
patch
|
Details | Diff | Splinter Review | |
38.54 KB,
text/plain
|
Details | |
17.41 KB,
patch
|
Details | Diff | Splinter Review |
Clean up and fix uses like mPath.Adopt(foo) to check for NS_ERROR_OUT_OF_MEMORY unchecked accessors like: newParent->IsDirectory(&targetIsDirectory); overall style congruity etc . . . --pete
Assignee | ||
Comment 1•23 years ago
|
||
Updated•23 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.4
Assignee | ||
Comment 2•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Assignee | ||
Comment 4•23 years ago
|
||
I am working on this bug now and am writing some notes for myself to state the changes being made. 1. removed all the unnecessary (const char*) casting of XPIDLCStrings and using .get() instead. 2. add proper include files so FreeBSD can statfs instead of returning "not implemented" 3. some very minor style clean ups. I want to change the tabstops to 2 spaces instead of 4 but perhaps i can do that on a second pass. 4. in ::CopyTo, i cloned the param newParent so the method will operate on the clone instead of the callers param. I beleive win and mac implement this way as well. --pete
Assignee | ||
Comment 5•23 years ago
|
||
Assignee | ||
Comment 6•23 years ago
|
||
need review
Assignee | ||
Comment 7•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Attachment #43780 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Attachment #43823 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Attachment #59080 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Attachment #59084 -
Attachment is obsolete: true
Comment 8•23 years ago
|
||
Adding other nsLocalFileUnix buddies. /be
Comment 9•23 years ago
|
||
Comment on attachment 59085 [details] [diff] [review] for review Need to indent the return rv; below: @@ -564,7 +578,8 @@ } else { // make sure that the target is actually a directory PRBool targetIsDirectory; - newParent->IsDirectory(&targetIsDirectory); + if (NS_FAILED(rv = newParent->IsDirectory(&targetIsDirectory))) + return rv; Otherwise looks good to me -- r/sr=brendan@mozilla.org, whichever ya need. /be
Attachment #59085 -
Flags: superreview+
Comment 10•23 years ago
|
||
Someone else should give the patch a good r=, I was in a hurry for lunch (but I'm not worried). /be
Assignee | ||
Comment 11•23 years ago
|
||
Comment 12•23 years ago
|
||
Comment on attachment 59085 [details] [diff] [review] for review what brendan said.
Attachment #59085 -
Flags: review+
Assignee | ||
Comment 13•23 years ago
|
||
Checked in. I am going to leave this open and do a style modification and change the tabstop to 2. --pete
Comment 14•23 years ago
|
||
Pete: why change the indentation? A bunch of xpcom files (in particular, xpcom/io files) use four space. I prefer it, and so do others with vested interests here. You should not change it unilaterally, even though you are doing great work and touching more lines than the rest of us vested interested parties, I think. What's your motivation? /be
Assignee | ||
Comment 15•23 years ago
|
||
Assignee | ||
Comment 16•23 years ago
|
||
Brendan, i cleande up the comments and white space etc. My motivation is to just make the file more uniform and easier to read. I prefer 2 space indentation but i can put it back to 4 if you like. Two makes it easier to read IMHO. Anyway, i'd like to land this now. I can keep it at 4 and just land the pure style and white space cleanup here. I won't need another review. No code has been altered. Thanks --pete
Assignee | ||
Comment 17•23 years ago
|
||
Assignee | ||
Comment 18•23 years ago
|
||
Indentation reamins at 4 spaces. I will check it in, in about a half an hour. Thanks --pete
Comment 19•23 years ago
|
||
Comment on attachment 59563 [details] [diff] [review] purely a style/white space/comment cleanup patch Pete, how about a diff -wu? Also, please don't make the license comment a doc-comment -- don't mess with anything in the "license block", in general. /be
Assignee | ||
Comment 20•23 years ago
|
||
Thanks Brendan. Part two now checked in. --pete
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•