Changeset 5624 for source/ariba/communication/EndpointDescriptor.h
- Timestamp:
- Aug 3, 2009, 2:29:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/EndpointDescriptor.h
r5502 r5624 56 56 57 57 public: 58 /// the unspecified endpoint descriptor59 static const EndpointDescriptor UNSPECIFIED;60 61 58 /// creates an empty endpoint descriptor with zero endpoints 62 59 EndpointDescriptor(); … … 79 76 } 80 77 78 static EndpointDescriptor& UNSPECIFIED() { 79 static EndpointDescriptor* unspec = NULL; 80 if(unspec == NULL) unspec = new EndpointDescriptor(); 81 82 return *unspec; 83 } 84 81 85 /// returns true, if this object is the unspecified object 82 86 bool isUnspecified() const { 83 return this == &UNSPECIFIED;87 return (this == &UNSPECIFIED()); 84 88 } 85 89
Note:
See TracChangeset
for help on using the changeset viewer.