bug 315570 r=benjamin

Add a reusable autocomplete result type that doesn't depend on Mork. Components
can easily provide autocomplete results using this interface and
implementation. This patch fixes some style and portability nits.
This commit is contained in:
brettw%gmail.com 2005-11-09 21:27:51 +00:00
parent 2b146eed76
commit b9777b38a2
2 changed files with 5 additions and 2 deletions

View File

@ -268,6 +268,7 @@ protected:
};
class AutoCompleteIntermediateResultSet;
// nsNavHistory
@ -277,7 +278,7 @@ class nsNavHistory : nsSupportsWeakReference,
public nsIBrowserHistory,
public nsIAutoCompleteSearch
{
friend struct AutoCompleteIntermediateResultSet;
friend class AutoCompleteIntermediateResultSet;
public:
nsNavHistory();

View File

@ -54,8 +54,10 @@ public:
NS_DECL_NSIAUTOCOMPLETERESULT
NS_DECL_NSIAUTOCOMPLETESIMPLERESULT
private:
~nsAutoCompleteSimpleResult() {}
protected:
~nsAutoCompleteSimpleResult() {};
// What we really want is an array of structs with value/comment contents.
// But then we'd either have to use COM or manage object lifetimes ourselves.