- Timestamp:
- 05/05/08 06:58:23 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Material/Base/OSGSimpleMaterialBase.cpp
r1098 r1197 658 658 SimpleMaterialTransitPtr fc; 659 659 660 if(getClassType().getPrototype() != N ullFC)660 if(getClassType().getPrototype() != NULL) 661 661 { 662 662 FieldContainerTransitPtr tmpPtr = … … 674 674 SimpleMaterialTransitPtr fc; 675 675 676 if(getClassType().getPrototype() != N ullFC)676 if(getClassType().getPrototype() != NULL) 677 677 { 678 678 FieldContainerTransitPtr tmpPtr = … … 686 686 687 687 //! create an empty new instance of the class, do not copy the prototype 688 SimpleMaterial PtrSimpleMaterialBase::createEmpty(void)689 { 690 SimpleMaterial PtrreturnValue;688 SimpleMaterial *SimpleMaterialBase::createEmpty(void) 689 { 690 SimpleMaterial *returnValue; 691 691 692 692 newPtr<SimpleMaterial>(returnValue, Thread::getCurrentLocalFlags()); … … 698 698 } 699 699 700 SimpleMaterial PtrSimpleMaterialBase::createEmptyLocal(BitVector bFlags)701 { 702 SimpleMaterial PtrreturnValue;700 SimpleMaterial *SimpleMaterialBase::createEmptyLocal(BitVector bFlags) 701 { 702 SimpleMaterial *returnValue; 703 703 704 704 newPtr<SimpleMaterial>(returnValue, bFlags); … … 711 711 FieldContainerTransitPtr SimpleMaterialBase::shallowCopy(void) const 712 712 { 713 SimpleMaterial PtrtmpPtr;713 SimpleMaterial *tmpPtr; 714 714 715 715 newPtr(tmpPtr, … … 727 727 BitVector bFlags) const 728 728 { 729 SimpleMaterial PtrtmpPtr;729 SimpleMaterial *tmpPtr; 730 730 731 731 newPtr(tmpPtr, dynamic_cast<const SimpleMaterial *>(this), bFlags); … … 970 970 971 971 #ifdef OSG_MT_CPTR_ASPECT 972 FieldContainer PtrSimpleMaterialBase::createAspectCopy(void) const973 { 974 SimpleMaterial PtrreturnValue;972 FieldContainer *SimpleMaterialBase::createAspectCopy(void) const 973 { 974 SimpleMaterial *returnValue; 975 975 976 976 newAspectCopy(returnValue, … … 990 990 991 991 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 992 DataType FieldTraits<SimpleMaterial Ptr>::_type("SimpleMaterialPtr", "ChunkMaterialPtr");992 DataType FieldTraits<SimpleMaterial *>::_type("SimpleMaterialPtr", "ChunkMaterialPtr"); 993 993 #endif 994 994
