Changeset 5485 for source/ariba
- Timestamp:
- Jul 30, 2009, 3:07:54 PM (15 years ago)
- Location:
- source/ariba/communication
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/BaseCommunication.cpp
r5406 r5485 55 55 56 56 use_logging_cpp(BaseCommunication); 57 const BaseCommunication::LinkDescriptor58 BaseCommunication::LinkDescriptor::UNSPECIFIED;59 57 60 58 BaseCommunication::BaseCommunication() { … … 501 499 for (int i=0; i<linkSet.size();i++) 502 500 if (linkSet[i]->localLink == link) return (LinkDescriptor&)*linkSet[i]; 503 return (LinkDescriptor&)LinkDescriptor::UNSPECIFIED; 501 502 LinkDescriptor ret; 503 ret.unspecified = true; 504 return ret; 504 505 } 505 506 … … 508 509 for (int i=0; i<linkSet.size();i++) 509 510 if (linkSet[i]->remoteLink == link) return (LinkDescriptor&)*linkSet[i]; 510 return (LinkDescriptor&)LinkDescriptor::UNSPECIFIED; 511 512 LinkDescriptor ret; 513 ret.unspecified = true; 514 return ret; 511 515 } 512 516 -
source/ariba/communication/BaseCommunication.h
r5358 r5485 229 229 class LinkDescriptor { 230 230 public: 231 static const LinkDescriptor UNSPECIFIED;232 231 233 232 /// default constructor … … 235 234 localLink(LinkID::UNSPECIFIED), localLocator(NULL), 236 235 remoteLink(LinkID::UNSPECIFIED), remoteLocator(NULL), 237 remoteEndpoint(EndpointDescriptor::UNSPECIFIED), up(false) {236 remoteEndpoint(EndpointDescriptor::UNSPECIFIED), up(false), unspecified(false) { 238 237 } 239 238 … … 243 242 } 244 243 245 /// returns true if this is the UNSPECIFIED object246 244 bool isUnspecified() const { 247 return this == &UNSPECIFIED;245 return unspecified; 248 246 } 247 248 bool unspecified; 249 249 250 250 /// link identifiers … … 288 288 NetworkChangeDetection networkMonitor; 289 289 #endif 290 290 291 /// event listener 291 292 typedef set<CommunicationEvents*> EventListenerSet;
Note:
See TracChangeset
for help on using the changeset viewer.