Closed
Bug 261593
Opened 21 years ago
Closed 21 years ago
get rid of AssignWithConversion in filesystemdatasource
Categories
(Core Graveyard :: RDF, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8alpha5
People
(Reporter: Biesinger, Assigned: Biesinger)
Details
Attachments
(1 file, 2 obsolete files)
5.58 KB,
patch
|
axel
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 160092 [details] [diff] [review]
patch
- most of the patch is correct because GetValueConst returns UTF-8, as
described in nsIRDFResource.idl
- the beos part is correct because UTF-8 is beos's native encoding
Attachment #160092 -
Flags: review?(bsmedberg)
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•21 years ago
|
Target Milestone: --- → mozilla1.8beta
Comment 3•21 years ago
|
||
I'd rather see us fixing the string usage here right, this is just wallpapering
over one issue.
Why not use
nsCString uri;
rv = source->GetValueUTF8(uri); // this just refcounts the buffer
if (NS_FAILED(rv)) return(rv);
NS_ConvertUTF8toUTF16 theURI(uri);
This seems to do, up to not doing an additional string length check, the exact
same thing.
Assignee | ||
Updated•21 years ago
|
Attachment #160092 -
Attachment is obsolete: true
Attachment #160092 -
Flags: review?(bsmedberg)
Assignee | ||
Updated•21 years ago
|
Target Milestone: mozilla1.8beta → mozilla1.8alpha5
Assignee | ||
Comment 4•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #160638 -
Flags: review?(axel)
Assignee | ||
Updated•21 years ago
|
Attachment #160638 -
Attachment is obsolete: true
Attachment #160638 -
Flags: review?(axel)
Assignee | ||
Comment 5•21 years ago
|
||
fully addresses review comment
Assignee | ||
Updated•21 years ago
|
Attachment #160647 -
Flags: review?(axel)
Comment 6•21 years ago
|
||
Attachment #160647 -
Flags: review?(axel) → review+
Assignee | ||
Updated•21 years ago
|
Attachment #160647 -
Flags: superreview?(darin)
Updated•21 years ago
|
Attachment #160647 -
Flags: superreview?(darin) → superreview+
Assignee | ||
Comment 7•21 years ago
|
||
Checking in rdf/datasource/src/nsFileSystemDataSource.cpp;
/cvsroot/mozilla/rdf/datasource/src/nsFileSystemDataSource.cpp,v <--
nsFileSystemDataSource.cpp
new revision: 1.137; previous revision: 1.136
done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•