@@ -56,12 +56,9 @@ static nsresult ParseQueryBooleanString(const nsCString& aString,
5656 bool * aValue);
5757
5858// query getters
59- typedef NS_STDCALL_FUNCPROTO (nsresult, BoolQueryGetter, nsINavHistoryQuery,
60- GetOnlyBookmarked, (bool *));
61- typedef NS_STDCALL_FUNCPROTO (nsresult, Uint32QueryGetter, nsINavHistoryQuery,
62- GetBeginTimeReference, (uint32_t *));
63- typedef NS_STDCALL_FUNCPROTO (nsresult, Int64QueryGetter, nsINavHistoryQuery,
64- GetBeginTime, (int64_t *));
59+ typedef decltype (&nsINavHistoryQuery::GetOnlyBookmarked) BoolQueryGetter;
60+ typedef decltype (&nsINavHistoryQuery::GetBeginTimeReference) Uint32QueryGetter;
61+ typedef decltype (&nsINavHistoryQuery::GetBeginTime) Int64QueryGetter;
6562static void AppendBoolKeyValueIfTrue (nsACString& aString,
6663 const nsCString& aName,
6764 nsINavHistoryQuery* aQuery,
@@ -76,12 +73,9 @@ static void AppendInt64KeyValueIfNonzero(nsACString& aString,
7673 Int64QueryGetter getter);
7774
7875// query setters
79- typedef NS_STDCALL_FUNCPROTO (nsresult, BoolQuerySetter, nsINavHistoryQuery,
80- SetOnlyBookmarked, (bool ));
81- typedef NS_STDCALL_FUNCPROTO (nsresult, Uint32QuerySetter, nsINavHistoryQuery,
82- SetBeginTimeReference, (uint32_t ));
83- typedef NS_STDCALL_FUNCPROTO (nsresult, Int64QuerySetter, nsINavHistoryQuery,
84- SetBeginTime, (int64_t ));
76+ typedef decltype (&nsINavHistoryQuery::SetOnlyBookmarked) BoolQuerySetter;
77+ typedef decltype (&nsINavHistoryQuery::SetBeginTimeReference) Uint32QuerySetter;
78+ typedef decltype (&nsINavHistoryQuery::SetBeginTime) Int64QuerySetter;
8579static void SetQueryKeyBool (const nsCString& aValue, nsINavHistoryQuery* aQuery,
8680 BoolQuerySetter setter);
8781static void SetQueryKeyUint32 (const nsCString& aValue, nsINavHistoryQuery* aQuery,
@@ -90,15 +84,9 @@ static void SetQueryKeyInt64(const nsCString& aValue, nsINavHistoryQuery* aQuery
9084 Int64QuerySetter setter);
9185
9286// options setters
93- typedef NS_STDCALL_FUNCPROTO (nsresult, BoolOptionsSetter,
94- nsINavHistoryQueryOptions,
95- SetExpandQueries, (bool ));
96- typedef NS_STDCALL_FUNCPROTO (nsresult, Uint32OptionsSetter,
97- nsINavHistoryQueryOptions,
98- SetMaxResults, (uint32_t ));
99- typedef NS_STDCALL_FUNCPROTO (nsresult, Uint16OptionsSetter,
100- nsINavHistoryQueryOptions,
101- SetResultType, (uint16_t ));
87+ typedef decltype (&nsINavHistoryQueryOptions::SetExpandQueries) BoolOptionsSetter;
88+ typedef decltype (&nsINavHistoryQueryOptions::SetMaxResults) Uint32OptionsSetter;
89+ typedef decltype (&nsINavHistoryQueryOptions::SetResultType) Uint16OptionsSetter;
10290static void SetOptionsKeyBool (const nsCString& aValue,
10391 nsINavHistoryQueryOptions* aOptions,
10492 BoolOptionsSetter setter);
0 commit comments