Searched refs:NS_STATIC_CAST (Results 1 - 25 of 63) sorted by relevance

123

/vbox/src/libs/xpcom18a4/xpcom/ds/
H A DnsDoubleHashtable.h211 ENTRY_CLASS* e = NS_STATIC_CAST(ENTRY_CLASS*, entry); \
223 const ENTRY_CLASS* e = NS_STATIC_CAST(const ENTRY_CLASS*, entry); \
229 ENTRY_CLASS* e = NS_STATIC_CAST(ENTRY_CLASS *, entry); \
366 ENTRY_CLASS* e = NS_STATIC_CAST(ENTRY_CLASS*, \
372 return NS_STATIC_CAST(ENTRY_CLASS*, \
415 mKey(*NS_STATIC_CAST(const nsAString*, aKey)) { }
419 return NS_STATIC_CAST(const nsAString*, &mKey);
422 return HashString(*NS_STATIC_CAST(const nsAString*, key));
425 return NS_STATIC_CAST(const nsAString*, key)->Equals(mKey);
438 mKey(*NS_STATIC_CAST(cons
[all...]
H A DnsCOMArray.h100 return NS_STATIC_CAST(nsISupports*, mArray.FastElementAt(aIndex));
104 return NS_STATIC_CAST(nsISupports*, mArray.SafeElementAt(aIndex));
153 return NS_STATIC_CAST(T*,nsCOMArray_base::ObjectAt(aIndex));
158 return NS_STATIC_CAST(T*,nsCOMArray_base::SafeObjectAt(aIndex));
170 return nsCOMArray_base::IndexOf(NS_STATIC_CAST(nsISupports*, aObject));
179 return nsCOMArray_base::IndexOfObject(NS_STATIC_CAST(nsISupports*, aObject));
185 return nsCOMArray_base::InsertObjectAt(NS_STATIC_CAST(nsISupports*, aObject), aIndex);
197 return nsCOMArray_base::ReplaceObjectAt(NS_STATIC_CAST(nsISupports*, aObject), aIndex);
239 return nsCOMArray_base::AppendObject(NS_STATIC_CAST(nsISupports*, aObject));
251 return nsCOMArray_base::RemoveObject(NS_STATIC_CAST(nsISupport
[all...]
H A DnsArray.cpp105 return NS_NewArrayEnumerator(aResult, NS_STATIC_CAST(nsIArray*, this));
116 getter_AddRefs(NS_STATIC_CAST(nsISupports*,
144 getter_AddRefs(NS_STATIC_CAST(nsISupports*,
170 NS_STATIC_CAST(findIndexOfClosure*, aClosure);
173 NS_STATIC_CAST(nsISupports*, aElement);
210 *aResult = NS_STATIC_CAST(nsIMutableArray*,arr);
222 *aResult = NS_STATIC_CAST(nsIMutableArray*, arr);
H A DnsStaticNameTable.cpp63 NS_STATIC_CAST(const NameTableEntry *, aHdr);
64 const char *keyValue = NS_STATIC_CAST(const char*, key);
82 NS_STATIC_CAST(const unsigned char*, key);
160 NS_STATIC_CAST(NameTableEntry*,
178 NS_STATIC_CAST(NameTableEntry*,
H A DnsAtomTable.cpp172 AtomTableEntry *he = NS_STATIC_CAST(AtomTableEntry*, entry);
182 const AtomTableEntry *he = NS_STATIC_CAST(const AtomTableEntry*, entry);
183 const char* keyStr = NS_STATIC_CAST(const char*, key);
190 AtomTableEntry *he = NS_STATIC_CAST(AtomTableEntry*, entry);
203 delete NS_STATIC_CAST(PermanentAtomImpl*, atom);
231 AtomTableEntry *entry = NS_STATIC_CAST(AtomTableEntry*, he);
238 ++*NS_STATIC_CAST(PRUint32*, arg);
343 AtomImpl* ii = NS_STATIC_CAST(AtomImpl*, ::operator new(size));
491 return NS_STATIC_CAST(AtomTableEntry*,
H A DnsVoidArray.cpp623 VoidArrayComparatorContext* ctx = NS_STATIC_CAST(VoidArrayComparatorContext*, aData);
624 return (*ctx->mComparatorFunc)(*NS_STATIC_CAST(void* const*, aElement1),
625 *NS_STATIC_CAST(void* const*, aElement2),
743 nsString* oldString = NS_STATIC_CAST(nsString*, other.ElementAt(i));
753 nsString* string = NS_STATIC_CAST(nsString*, nsVoidArray::ElementAt(aIndex));
767 return NS_STATIC_CAST(nsString*, nsVoidArray::ElementAt(aIndex));
779 nsString* string = NS_STATIC_CAST(nsString*, *ap);
806 nsString* string = NS_STATIC_CAST(nsString*, nsVoidArray::ElementAt(aIndex));
844 nsString* string = NS_STATIC_CAST(nsString*, mImpl->mArray[index]);
876 running = (*aFunc)(*NS_STATIC_CAST(nsStrin
[all...]
H A DnsPersistentProperties.cpp72 return NS_STATIC_CAST(PRUnichar*, mem);
85 return NS_STATIC_CAST(char*, mem);
103 mSubclass = NS_STATIC_CAST(nsIPersistentProperties*, this);
275 NS_STATIC_CAST(PropertyTableEntry*,
314 NS_STATIC_CAST(PropertyTableEntry*,
330 NS_STATIC_CAST(PropertyTableEntry*, hdr);
H A DnsCppSharedAllocator.h72 return NS_REINTERPRET_CAST(pointer, nsMemory::Alloc(NS_STATIC_CAST(PRUint32, n*sizeof(T))));
H A DnsHashtable.cpp73 NS_STATIC_CAST(const HTEntry*, entry);
85 const nsHashKey* hashKey = NS_STATIC_CAST(const nsHashKey*, key);
93 HTEntry* hashEntry = NS_STATIC_CAST(HTEntry*, entry);
129 HTEntry* entry = NS_STATIC_CAST(HTEntry*, hdr);
219 NS_STATIC_CAST(HTEntry*,
246 NS_STATIC_CAST(HTEntry*,
268 NS_STATIC_CAST(HTEntry*,
293 HTEntry * entry = NS_STATIC_CAST(HTEntry*, hdr);
326 HTEntry* entry = NS_STATIC_CAST(HTEntry*, hdr);
762 HTEntry *entry = NS_STATIC_CAST(HTEntr
[all...]
H A DnsObserverList.cpp81 observerRef = getter_AddRefs(NS_STATIC_CAST(nsISupports*, NS_GetWeakReference(weakRefFactory)));
117 observerRef = getter_AddRefs(NS_STATIC_CAST(nsISupports*, NS_GetWeakReference(weakRefFactory)));
/vbox/src/libs/xpcom18a4/xpcom/base/
H A DnsAutoPtr.h317 return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs.get());
326 return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs.get());
337 return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs);
345 return NS_STATIC_CAST(const U*, lhs) == NS_STATIC_CAST(const T*, rhs.get());
353 return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(cons
[all...]
/vbox/src/libs/xpcom18a4/xpcom/tests/
H A DTestAutoPtr.cpp63 NS_STATIC_CAST(void*, this));
70 NS_STATIC_CAST(void*, this));
95 NS_STATIC_CAST(void*, this));
101 NS_STATIC_CAST(void*, this));
108 mRefCount, NS_STATIC_CAST(void*, this));
116 mRefCount, NS_STATIC_CAST(void*, this));
142 NS_STATIC_CAST(void*, aIn));
148 NS_STATIC_CAST(const void*, aIn));
154 NS_STATIC_CAST(void*, aIn));
160 NS_STATIC_CAST(cons
[all...]
H A DTestCallTemplates.cpp104 NS_STATIC_CAST(nsIWeakReference*, mySupportsPtr);
125 NS_STATIC_CAST(nsIInterfaceRequestor*, mySupportsPtr);
H A DTestPermanentAtoms.cpp55 NS_STATIC_CAST(AtomImpl*,aAtom)->GetUTF8String(&str);
61 Assert(NS_STATIC_CAST(AtomImpl*,aAtom)->IsPermanent() == aPermanence,
H A DTestHashtables.cpp266 NS_STATIC_CAST(void*, this), total_constructions_);
273 NS_STATIC_CAST(void*, this), total_destructions_);
281 NS_STATIC_CAST(void*, this), refcount_);
294 NS_STATIC_CAST(void*, this), refcount_);
298 printf(" delete IFoo@%p\n", NS_STATIC_CAST(void*, this));
303 printf(" delete IFoo@%p\n", NS_STATIC_CAST(void*, this));
311 printf("IFoo@%p::QueryInterface()\n", NS_STATIC_CAST(void*, this));
321 rawPtr = NS_STATIC_CAST(nsISupports*, this);
352 printf("IFoo@%p\n", NS_STATIC_CAST(void*, foop));
/vbox/src/libs/xpcom18a4/xpcom/glue/
H A DnsWeakReference.cpp67 // nsIWeakReference** result = &NS_STATIC_CAST(nsIWeakReference*, *aResult);
96 return NS_STATIC_CAST(nsIWeakReference*, result);
146 foundInterface = NS_STATIC_CAST(nsIWeakReference*, this);
148 foundInterface = NS_STATIC_CAST(nsISupports*, this);
H A DnsISupportsUtils.h181 * |NS_STATIC_CAST(nsIBase*, this)|; but that disguises the fact that what
183 * that more obvious with a double cast, e.g., |NS_STATIC_CAST(nsISupports*,
184 * NS_STATIC_CAST(nsIBase*, this))|, but that is bulky and harder to read...
191 NS_STATIC_CAST(nsISupports*, NS_STATIC_CAST(__unambiguousBase, __expr))
H A DnsTraceRefcnt.h89 nsTraceRefcnt::LogAddCOMPtr((_c),NS_STATIC_CAST(nsISupports*,_p))
93 nsTraceRefcnt::LogReleaseCOMPtr((_c), NS_STATIC_CAST(nsISupports*,_p))
H A DnsCOMPtr.h1223 return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs.get());
1232 return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs.get());
1243 return NS_STATIC_CAST(const T*, lhs.get()) == rhs;
1251 return lhs == NS_STATIC_CAST(const T*, rhs.get());
1259 return NS_STATIC_CAST(const T*, lhs.get()) != rhs;
1267 return lhs != NS_STATIC_CAST(const T*, rhs.get());
1290 return NS_STATIC_CAST(const T*, lhs.get()) == NS_CONST_CAST(const U*, rhs);
1298 return NS_CONST_CAST(const U*, lhs) == NS_STATIC_CAST(cons
[all...]
/vbox/src/libs/xpcom18a4/xpcom/components/
H A DnsStaticComponentLoader.cpp85 StaticModuleInfo *info = NS_STATIC_CAST(StaticModuleInfo *, entry);
94 new (NS_STATIC_CAST(void *, entry)) StaticModuleInfo();
133 NS_STATIC_CAST(StaticModuleInfo *,
154 NS_STATIC_CAST(StaticModuleInfo *,
192 nsStaticComponentLoader *loader = NS_STATIC_CAST(nsStaticComponentLoader *,
195 StaticModuleInfo *info = NS_STATIC_CAST(StaticModuleInfo *, hdr);
266 StaticModuleInfo *info = NS_STATIC_CAST(StaticModuleInfo *,
314 NS_IF_ADDREF(*retval = NS_STATIC_CAST(nsIComponentLoader *,
H A DnsComponentManager.cpp263 return NS_STATIC_CAST(char *, mem);
282 nsFactoryTableEntry* entry = NS_STATIC_CAST(nsFactoryTableEntry*, aHdr);
300 NS_STATIC_CAST(const nsFactoryTableEntry*, aHdr);
309 nsFactoryTableEntry* entry = NS_STATIC_CAST(nsFactoryTableEntry*, aHdr);
330 nsContractIDTableEntry* entry = NS_STATIC_CAST(nsContractIDTableEntry*, aHdr);
631 nsComponentManagerImpl *cm = NS_STATIC_CAST(nsComponentManagerImpl *, data);
661 nsComponentManagerImpl *cm = NS_STATIC_CAST(nsComponentManagerImpl *, data);
1179 NS_STATIC_CAST(nsFactoryTableEntry*,
1214 NS_STATIC_CAST(nsContractIDTableEntry*,
1258 NS_STATIC_CAST(nsContractIDTableEntr
[all...]
/vbox/src/libs/xpcom18a4/xpcom/threads/
H A DTimerThread.cpp77 nsTimerImpl *timer = NS_STATIC_CAST(nsTimerImpl *, mTimers[n]);
124 NS_STATIC_CAST(nsIRunnable*, this),
175 timer = NS_STATIC_CAST(nsTimerImpl*, mTimers[i]);
256 timer = NS_STATIC_CAST(nsTimerImpl*, mTimers[0]);
300 timer = NS_STATIC_CAST(nsTimerImpl *, mTimers[0]);
394 nsTimerImpl *timer = NS_STATIC_CAST(nsTimerImpl *, mTimers[i]);
438 nsTimerImpl *timer = NS_STATIC_CAST(nsTimerImpl*, mTimers[i]);
/vbox/src/libs/xpcom18a4/xpcom/proxy/public/
H A DnsProxyRelease.h99 NS_STATIC_CAST(nsISupports*, this), \
/vbox/src/libs/xpcom18a4/xpcom/string/public/
H A DnsLiteralString.h106 #define NS_LITERAL_STRING(s) NS_STATIC_CAST(const nsAFlatString&, NS_MULTILINE_LITERAL_STRING(NS_LL(s)))
110 #define NS_LITERAL_CSTRING(s) NS_STATIC_CAST(const nsDependentCString&, nsDependentCString(s, PRUint32(sizeof(s)-1)))
H A DnsCharTraits.h114 return int_type( NS_STATIC_CAST(unsigned_char_type, c) );
148 return NS_STATIC_CAST(char_type*, memmove(s1, s2, n * sizeof(char_type)));
155 return NS_STATIC_CAST(char_type*, memcpy(s1, s2, n * sizeof(char_type)));
174 return NS_STATIC_CAST(char_type*, wmemset(s, to_int_type(c), n));
395 return int_type( NS_STATIC_CAST(unsigned_char_type, c) );
429 return NS_STATIC_CAST(char_type*, memmove(s1, s2, n * sizeof(char_type)));
436 return NS_STATIC_CAST(char_type*, memcpy(s1, s2, n * sizeof(char_type)));
450 return NS_STATIC_CAST(char_type*, memset(s, to_int_type(c), n));

Completed in 5146 milliseconds

123