Closed Bug 833949 Opened 11 years ago Closed 11 years ago

convert nsMsgMailNewsUrl::m_cachedMemCacheEntries from nsISupportsArray to nsCOMArray

Categories

(MailNews Core :: Backend, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 21.0

People

(Reporter: aceman, Assigned: aceman)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Defined as a variable in:

    mailnews/base/util/nsMsgMailNewsUrl.cpp (View Hg log or Hg annotations)
        line 738 -- m_cachedMemCacheEntries->AppendElement(cacheEntrySupports);
        line 750 -- m_cachedMemCacheEntries->RemoveElement(cacheEntrySupports); 
    mailnews/base/util/nsMsgMailNewsUrl.h (View Hg log or Hg annotations)
        line 60 -- nsCOMPtr<nsISupportsArray> m_cachedMemCacheEntries; 

Referenced in:

    mailnews/base/util/nsMsgMailNewsUrl.cpp (View Hg log or Hg annotations)
        line 732 -- if (!m_cachedMemCacheEntries)
        line 733 -- NS_NewISupportsArray(getter_AddRefs(m_cachedMemCacheEntries));
        line 734 -- if (m_cachedMemCacheEntries)
        line 746 -- if (m_cachedMemCacheEntries)
Attached patch patch (obsolete) — Splinter Review
Attachment #705536 - Flags: review?(neil)
Status: NEW → ASSIGNED
Comment on attachment 705536 [details] [diff] [review]
patch

It's OK but I'd have preferred an nsCOMArray.
Attachment #705536 - Flags: review?(neil) → review+
Why? Isn't nsTArray more strict?
Attached patch patch v2Splinter Review
Attachment #705536 - Attachment is obsolete: true
Attachment #706527 - Flags: review?(neil)
Comment on attachment 706527 [details] [diff] [review]
patch v2

nsCOMArray can do things that nsTArray can't and uses less code. However it does have a weird API, and I'm still waiting on review to fix that :-(
Attachment #706527 - Flags: review?(neil) → review+
Keywords: checkin-needed
Summary: convert nsMsgMailNewsUrl::m_cachedMemCacheEntries from nsISupportsArray to nsTArray → convert nsMsgMailNewsUrl::m_cachedMemCacheEntries from nsISupportsArray to nsCOMArray
https://hg.mozilla.org/comm-central/rev/cb616b4ba9b4
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 21.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: