Lines Matching refs:p1

227         nsRefPtr<TestRefObject> p1( new TestRefObject() );
229 nsRefPtr<TestRefObject> p2( p1 );
236 nsRefPtr<TestRefObject> p1( new TestRefObject() );
237 nsRefPtr<TestRefObject> p2( p1 );
239 ((p1 == p2) && !(p1 != p2)) ? "OK" : "broken");
243 const nsRefPtr<TestRefObject> p1( new TestRefObject() );
244 nsRefPtr<TestRefObject> p2( p1 );
246 ((p1 == p2) && !(p1 != p2)) ? "OK" : "broken");
250 nsRefPtr<TestRefObject> p1( new TestRefObject() );
251 const nsRefPtr<TestRefObject> p2( p1 );
253 ((p1 == p2) && !(p1 != p2)) ? "OK" : "broken");
257 const nsRefPtr<TestRefObject> p1( new TestRefObject() );
258 const nsRefPtr<TestRefObject> p2( p1 );
260 ((p1 == p2) && !(p1 != p2)) ? "OK" : "broken");
264 nsRefPtr<TestRefObject> p1( new TestRefObject() );
265 TestRefObject * p2 = p1;
267 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
271 const nsRefPtr<TestRefObject> p1( new TestRefObject() );
272 TestRefObject * p2 = p1;
274 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
279 nsRefPtr<TestRefObject> p1( new TestRefObject() );
280 TestRefObject * const p2 = p1;
282 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
286 const nsRefPtr<TestRefObject> p1( new TestRefObject() );
287 TestRefObject * const p2 = p1;
289 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
294 nsRefPtr<TestRefObject> p1( new TestRefObject() );
295 const TestRefObject * p2 = p1;
297 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
301 const nsRefPtr<TestRefObject> p1( new TestRefObject() );
302 const TestRefObject * p2 = p1;
304 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
308 nsRefPtr<TestRefObject> p1( new TestRefObject() );
309 const TestRefObject * const p2 = p1;
311 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
315 const nsRefPtr<TestRefObject> p1( new TestRefObject() );
316 const TestRefObject * const p2 = p1;
318 ((p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1)) ? "OK" : "broken");
344 nsAutoPtr<TestObject> p1(new TestObject());
345 TestObjectBaseB *p2 = p1;
347 ((NS_STATIC_CAST(void*, p1) != NS_STATIC_CAST(void*, p2)) &&
348 (p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1))
353 TestObject *p1 = new TestObject();
354 nsAutoPtr<TestObjectBaseB> p2(p1);
356 ((NS_STATIC_CAST(void*, p1) != NS_STATIC_CAST(void*, p2)) &&
357 (p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1))
362 nsRefPtr<TestRefObject> p1 = new TestRefObject();
364 nsRefPtr<TestRefObjectBaseB> p2 = p1.get();
366 ((NS_STATIC_CAST(void*, p1) != NS_STATIC_CAST(void*, p2)) &&
367 (p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1))
372 nsRefPtr<TestRefObject> p1 = new TestRefObject();
373 TestRefObjectBaseB *p2 = p1;
375 ((NS_STATIC_CAST(void*, p1) != NS_STATIC_CAST(void*, p2)) &&
376 (p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1))
381 TestRefObject *p1 = new TestRefObject();
382 nsRefPtr<TestRefObjectBaseB> p2 = p1;
384 ((NS_STATIC_CAST(void*, p1) != NS_STATIC_CAST(void*, p2)) &&
385 (p1 == p2) && !(p1 != p2) && (p2 == p1) && !(p2 != p1))