Ignore:
Timestamp:
Aug 3, 2009, 2:29:12 PM (15 years ago)
Author:
Christoph Mayer
Message:

maemo segfault wegen static object ctors workaround

File:
1 edited

Legend:

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

    r5614 r5624  
    234234                        localLink(LinkID::UNSPECIFIED), localLocator(NULL),
    235235                        remoteLink(LinkID::UNSPECIFIED), remoteLocator(NULL),
    236                         remoteEndpoint(EndpointDescriptor::UNSPECIFIED), up(false), unspecified(false) {
     236                        up(false) {
    237237                }
    238238
     
    243243
    244244                bool isUnspecified() const {
    245                         return unspecified;
     245                        return (this == &UNSPECIFIED());
     246                }
     247
     248                static LinkDescriptor& UNSPECIFIED(){
     249                        static LinkDescriptor* unspec = NULL;
     250                        if(unspec == NULL) unspec = new LinkDescriptor();
     251                        return *unspec;
    246252                }
    247253
Note: See TracChangeset for help on using the changeset viewer.