Closed Bug 104719 Opened 24 years ago Closed 24 years ago

Change nsIMsgMailnewsUrl to use attributes instead of getters/setters

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: hwaara, Assigned: hwaara)

Details

Attachments

(1 file)

in nsIMsgMailnewsUrl.idl we have lots of SetFoo(in nsIFoo bar) / GetFoo(out nsIFoo bar). I suggest to simplify this with |attribute nsIFoo bar;|. This shouldn't break or affect C++, but I will probably have to change some JS code.
Surprise, I didn't have to change any callers, so this is merely a tiny IDL change. I made tabbing/whitespace consistent by making the few spaces be tabs (you want me to spacify it all intead? ;) Seeking rs=/sr= from bienvenu or sspitzer
Status: NEW → ASSIGNED
Summary: Make nsIMsgMailnewsUrl to use attributes instead of getters/setters → Change nsIMsgMailnewsUrl to use attributes instead of getters/setters
> Surprise, I didn't have to change any callers use lxr to double check your changes. /mailnews/base/resources/content/msgPrintEngine.js, line 62 -- printEngine.SetStatusFeedback(statusFeedback);
whoops, sorry about that. that is is from the nsIMsgPrintEngine interface. I'll go check the rest and then give a review.
Comment on attachment 53488 [details] [diff] [review] patch -- change IDL to be a little smarter sr=sspitzer
Attachment #53488 - Flags: superreview+
SetErrorMessage/GetErrorMessage are unused. Can I remove them as well, while I'm at it?
Comment on attachment 53488 [details] [diff] [review] patch -- change IDL to be a little smarter r=bienvenu
Attachment #53488 - Flags: review+
Thanks for the reviews guys, and nevermind that last comment; it was used internally.
fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
QA Contact: esther → stephend
1.22 hwaara%chello.se Oct 15 15:26 #104719, change nsIMsgMailNewsUrl.idl to use attributes rather than GetFoo/SetFoo. r=bienvenu, sr=sspitzer Patch was checked in, marking Verified FIXED.
Status: RESOLVED → VERIFIED
Hardware: PC → All
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: