Changeset 294 in pacpusframework for trunk/src/PacpusLib/ComponentManager.cpp


Ignore:
Timestamp:
Mar 28, 2014, 11:20:17 AM (11 years ago)
Author:
Marek Kurdej
Message:

Fixed: GCC compilation problems with shared_ptr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PacpusLib/ComponentManager.cpp

    r290 r294  
    180180    }
    181181
    182     boost::shared_ptr<ComponentBase> component = componentMap_.value(name, NULL);
     182    ComponentSharedPointer component = componentMap_.value(name, ComponentSharedPointer());
    183183   
    184184    // FIXME: remove from map (causes segfault in QMap::qMapLessThanKey on Windows)
     
    501501    }
    502502
     503    // FIXME: throw
    503504    LOG_WARN("cannot retrieve component '" << name << "'" << ". It does not exist");
    504     return NULL;
     505    return ComponentSharedPointer();
    505506}
    506507
Note: See TracChangeset for help on using the changeset viewer.