Closed
Bug 178790
Opened 22 years ago
Closed 20 years ago
separate xpcom wrapper and charset detector
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: shanjian, Assigned: jshin1987)
Details
Attachments
(1 file, 2 obsolete files)
18.48 KB,
patch
|
smontagu
:
review+
jshin1987
:
superreview+
|
Details | Diff | Splinter Review |
Unlike rest of the universal detector implementation file, nsUniversalDetector.h and nsUniversalDetector.cpp contains both implementation class (which has no dependency on XPCOM) and 2 XPCOM wrapper class. Separate those class to different files will benefit maintenance and future reuse.
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
patch
Status: NEW → ASSIGNED
Summary: separate xpcom wrapper and charset detector → separate xpcom wrapper and charset detector
Comment 3•22 years ago
|
||
Reporter | ||
Updated•22 years ago
|
Attachment #106410 -
Flags: superreview?(alecf)
Attachment #106410 -
Flags: review?(ftang)
Reporter | ||
Updated•22 years ago
|
Attachment #107934 -
Flags: superreview?(alecf)
Attachment #107934 -
Flags: review?(ftang)
Comment 4•22 years ago
|
||
Comment on attachment 106410 [details] [diff] [review] patch - You don't need to NS_INIT_ISUPPORTS anymore - Why not make mObserver an nsCOMPtr? with those changes, sr=alecf
Attachment #106410 -
Flags: superreview?(alecf) → superreview+
Comment 5•22 years ago
|
||
Comment on attachment 107934 [details] [diff] [review] Adding the new file to the project. sr=alecf
Attachment #107934 -
Flags: superreview?(alecf) → superreview+
Comment 6•20 years ago
|
||
CC'ing jungshik to see what if any we should do about this bug.
Comment 7•20 years ago
|
||
Well why not just do the check-in ? There will very little update needed as the code almost didn't change since the patch was written. And it would make things easier for independant use of the detector, like for example what I suggested at the end of bug 135762.
Assignee | ||
Comment 8•20 years ago
|
||
attachment 106410 [details] [diff] [review] needs a little update (it didn't get cleanly applied) in addition to what alecf's pointed out. attachment 107934 [details] [diff] [review] is not needed any more.
Assignee: shanjian → jshin
Attachment #106410 -
Attachment is obsolete: true
Attachment #107934 -
Attachment is obsolete: true
Assignee | ||
Comment 9•20 years ago
|
||
Comment on attachment 155006 [details] [diff] [review] patch (addressing alecf's comment and changing license to MPL) asking for r (just in case). Jean-Marc, thanks for reminding me of this (somehow I don't remember reading Kat's comment)
Attachment #155006 -
Flags: superreview+
Attachment #155006 -
Flags: review?(smontagu)
Comment 10•20 years ago
|
||
Comment on attachment 155006 [details] [diff] [review] patch (addressing alecf's comment and changing license to MPL) >+NS_IMETHODIMP nsUniversalXPCOMDetector::DoIt( >+ const char* aBuf, PRUint32 aLen, PRBool* oDontFeedMe) >+{ >+ NS_ASSERTION(mObserver != nsnull , "have not init yet"); >+ >+ if((nsnull == aBuf) || (nsnull == oDontFeedMe)) >+ return NS_ERROR_ILLEGAL_VALUE; >+ >+ this->HandleData(aBuf, aLen); Make this: nsresult rv = this->HandleData(aBuf, aLen); if (NS_FAILED(rv)) return rv; (Change from bug 225994) >+NS_IMETHODIMP nsUniversalXPCOMStringDetector::DoIt(const char* aBuf, PRUint32 aLen, >+ const char** oCharset, nsDetectionConfident &oConf) >+{ >+ mResult = nsnull; >+ this->Reset(); >+ this->HandleData(aBuf, aLen); Make the corresponding change from bug 225994 here too. Also detabify the new files and r=smontagu
Attachment #155006 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 11•20 years ago
|
||
patch checked in with Simon's concerns addressed. I changed the indentation a bit more.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Attachment #106410 -
Flags: review?(ftang)
Updated•19 years ago
|
Attachment #107934 -
Flags: review?(ftang)
You need to log in
before you can comment on or make changes to this bug.
Description
•