comparison qt/core/QList.d @ 337:5896535a03cd

moved enums back to classes
author maxter <spambox@d-coding.com>
date Sat, 13 Mar 2010 00:38:42 +0200
parents 115130499d78
children
comparison
equal deleted inserted replaced
336:b0a7819153bb 337:5896535a03cd
89 return x; 89 return x;
90 // } 90 // }
91 } 91 }
92 92
93 struct QListData { 93 struct QListData {
94 private:
94 struct Data { 95 struct Data {
95 Atomic!int ref_; 96 Atomic!int ref_;
96 int alloc, begin, end; 97 int alloc, begin, end;
97 uint sharable; 98 uint sharable;
98 void*[1] array; 99 void*[1] array;
353 else // native types 354 else // native types
354 { 355 {
355 ref T t() 356 ref T t()
356 { 357 {
357 static if(TI.isLarge || TI.isStatic) 358 static if(TI.isLarge || TI.isStatic)
358 return *cast(T*)(v); 359 return *cast(T*)(this.v);
359 else 360 else
360 return *cast(T*)(&this); 361 return *cast(T*)(&this);
361 } 362 }
362 } 363 }
363 } 364 }