Ignore:
Timestamp:
Jul 30, 2009, 3:07:54 PM (15 years ago)
Author:
Christoph Mayer
Message:

static initialization workaround

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/BaseCommunication.cpp

    r5406 r5485  
    5555
    5656use_logging_cpp(BaseCommunication);
    57 const BaseCommunication::LinkDescriptor
    58         BaseCommunication::LinkDescriptor::UNSPECIFIED;
    5957
    6058BaseCommunication::BaseCommunication() {
     
    501499        for (int i=0; i<linkSet.size();i++)
    502500                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;
    504505}
    505506
     
    508509        for (int i=0; i<linkSet.size();i++)
    509510                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;
    511515}
    512516
Note: See TracChangeset for help on using the changeset viewer.