Closed
Bug 132450
Opened 23 years ago
Closed 21 years ago
remove unused viewString parameter from OnItemAdded method
Categories
(MailNews Core :: Backend, defect, P3)
MailNews Core
Backend
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.1alpha
People
(Reporter: Bienvenu, Assigned: neil)
References
Details
Attachments
(2 files, 1 obsolete file)
22.35 KB,
patch
|
mscott
:
superreview+
|
Details | Diff | Splinter Review |
5.53 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
This parameter is a left-over from the rdf in the thread pane days - we no
longer need this view parameter.
Reporter | ||
Updated•23 years ago
|
Severity: normal → minor
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.1alpha
OS: Windows 2000 → All
QA Contact: esther → stephend
Hardware: PC → All
Assignee | ||
Comment 1•21 years ago
|
||
Assignee: bienvenu → neil.parkwaycc.co.uk
Assignee | ||
Updated•21 years ago
|
Attachment #146089 -
Flags: review?(bienvenu)
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 146089 [details] [diff] [review]
Proposed patch
I changed the first parameter of OnItemAdded/Removed to an nsIRDFResource to
simplify the consumers below.
>+ OnItemRemoved: function(parentItem, item) {
>+ if (parentItem.Value != gCurrentFolderUri)
> return;
>
> var deletedMessageHdr = item.QueryInterface(Components.interfaces.nsIMsgDBHdr);
At this point item could be either a db header or a folder so this could
actually throw an exception. It looks as if it will get ignored but I think
I'll change this anyway.
>+nsresult nsMsgFolderDataSource::OnItemAddedOrRemoved(nsIRDFResource *parentItem, nsISupports *item, PRBool added)
> {
>+ nsCOMPtr<nsIRDFNode> itemNode(do_QueryInterface(item));
>+ if (itemNode)
>+ {
>+ NotifyObservers(parentItem, kNC_Child, itemNode, added, PR_FALSE);
>+ }
>+ return NS_OK;
> }
Again, as item should be either a folder (which will QI to an RDF node) or a db
header (which won't) I didn't think any of the other checks were necessary.
Attachment #146089 -
Flags: review?(bienvenu) → review?
Reporter | ||
Comment 3•21 years ago
|
||
Comment on attachment 146089 [details] [diff] [review]
Proposed patch
ok, r=bienvenu with those changes, thx.
Attachment #146089 -
Flags: review? → review+
Assignee | ||
Comment 4•21 years ago
|
||
IIRC the exception would be generated if a child folder was deleted while a
message in the parent folder was being displayed standalone.
Assignee | ||
Updated•21 years ago
|
Attachment #146089 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #146120 -
Flags: superreview?(mscott)
Updated•21 years ago
|
Attachment #146120 -
Flags: superreview?(mscott) → superreview+
Assignee | ||
Comment 5•21 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•21 years ago
|
||
Assignee | ||
Comment 7•21 years ago
|
||
Comment on attachment 146366 [details] [diff] [review]
Missed some :-[
I hope these last few are simple enough for r/sr.
Attachment #146366 -
Flags: superreview?(bienvenu)
Attachment #146366 -
Flags: review?(bienvenu)
Reporter | ||
Updated•21 years ago
|
Attachment #146366 -
Flags: superreview?(bienvenu) → superreview+
Reporter | ||
Comment 8•21 years ago
|
||
Comment on attachment 146366 [details] [diff] [review]
Missed some :-[
yes, that's fine.
Attachment #146366 -
Flags: review?(bienvenu) → review+
Assignee | ||
Comment 9•21 years ago
|
||
Resolved REALLYFIXED ;-)
http://lxr.mozilla.org/seamonkey/search?string=NotifyItemAdded
NotifyItemAdded
/mailnews/addrbook/src/nsAbBSDirectory.cpp, line 74 -- nsresult
nsAbBSDirectory::NotifyItemAdded(nsISupports *item)
/mailnews/addrbook/src/nsAbBSDirectory.cpp, line 147 -- NotifyItemAdded(childDir);
/mailnews/addrbook/src/nsAbBSDirectory.h, line 67 -- nsresult
NotifyItemAdded(nsISupports *item);
/mailnews/addrbook/src/nsAbMDBDirectory.cpp, line 193 -- nsresult
nsAbMDBDirectory::NotifyItemAdded(nsISupports *item)
/mailnews/addrbook/src/nsAbMDBDirectory.cpp, line 677 -- NotifyItemAdded(newList);
/mailnews/addrbook/src/nsAbMDBDirectory.cpp, line 837 -- rv =
NotifyItemAdded(cardSupports);
/mailnews/addrbook/src/nsAbMDBDirectory.cpp, line 981 -- // NotifyItemAdded (card);
/mailnews/addrbook/src/nsAbMDBDirectory.h, line 82 -- NS_IMETHOD
NotifyDirItemAdded(nsISupports *item) { return NotifyItemAdded(item);}
/mailnews/addrbook/src/nsAbMDBDirectory.h, line 116 -- nsresult
NotifyItemAdded(nsISupports *item);
/mailnews/base/public/nsIMsgFolder.idl, line 454 -- void NotifyItemAdded(in
nsISupports item);
/mailnews/base/util/nsMsgDBFolder.cpp, line 868 -- NotifyItemAdded(msgDBHdr);
/mailnews/base/util/nsMsgDBFolder.cpp, line 4025 -- nsresult
nsMsgDBFolder::NotifyItemAdded(nsISupports *item)
/mailnews/imap/src/nsImapMailFolder.cpp, line 934 -- NotifyItemAdded(child);
/mailnews/imap/src/nsImapMailFolder.cpp, line 7260 -- NotifyItemAdded(child);
/mailnews/local/src/nsLocalMailFolder.cpp, line 983 -- NotifyItemAdded(child);
/mailnews/local/src/nsLocalMailFolder.cpp, line 1348 --
parentFolder->NotifyItemAdded(newFolder);
/mailnews/local/src/nsLocalMailFolder.cpp, line 2109 --
NotifyItemAdded(newMsgFolder);
/mailnews/news/src/nsNewsFolder.cpp, line 580 -- NotifyItemAdded(child);
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•