Changeset 16 in pacpusframework for trunk/src


Ignore:
Timestamp:
Jan 8, 2013, 1:51:02 AM (12 years ago)
Author:
sgosseli
Message:

Passage by const-reference instead of value.

File:
1 edited

Legend:

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

    r15 r16  
    5454}
    5555
    56 bool ComponentManager::registerComponentFactory(ComponentFactoryBase * addr, QString type)
     56bool ComponentManager::registerComponentFactory(ComponentFactoryBase* addr, const QString& type)
    5757{
    5858    LOG_TRACE("registerComponentFactory(type="<< type << ")");
     
    7171}
    7272
    73 bool ComponentManager::unRegisterComponentFactory(QString type)
     73bool ComponentManager::unRegisterComponentFactory(const QString& type)
    7474{
    7575    LOG_TRACE("unRegisterComponentFactory(type="<< type << ")");
     
    8787}
    8888
    89 bool ComponentManager::registerComponent(ComponentBase * addr, QString name)
     89bool ComponentManager::registerComponent(ComponentBase* addr, const QString& name)
    9090{
    9191    LOG_TRACE("registerComponent(name="<< name << ")");
     
    103103}
    104104
    105 bool ComponentManager::unRegisterComponent(QString name)
     105bool ComponentManager::unRegisterComponent(const QString& name)
    106106{
    107107    LOG_TRACE("unRegisterComponent(name="<< name << ")");
     
    121121}
    122122
    123 bool ComponentManager::createComponent(QString type, QString name)
     123bool ComponentManager::createComponent(const QString& type, const QString& name)
    124124{
    125125    LOG_TRACE("createComponent(type=" << type << ", " << "name="<< name << ")");
     
    136136}
    137137
    138 bool ComponentManager::loadPlugin(QString filename)
     138bool ComponentManager::loadPlugin(const QString& filename)
    139139{
    140140    LOG_TRACE("loadPlugin(filename=" << filename << ")");
     
    163163}
    164164
    165 std::size_t ComponentManager::loadComponents(QString configFilename)
     165std::size_t ComponentManager::loadComponents(const QString& configFilename)
    166166{
    167167    LOG_TRACE("loadComponents(filename=" << configFilename << ")");
     
    265265}
    266266
    267 int ComponentManager::start(QString componentName)
     267int ComponentManager::start(const QString& componentName)
    268268{
    269269    LOG_TRACE("start(component=" << componentName << ")");
     
    297297}
    298298
    299 int ComponentManager::stop(QString componentName)
     299int ComponentManager::stop(const QString& componentName)
    300300{
    301301    LOG_TRACE("stop(component=" << componentName << ")");
     
    318318}
    319319
    320 ComponentBase * ComponentManager::getComponent(QString name)
     320ComponentBase* ComponentManager::getComponent(const QString& name)
    321321{
    322322    LOG_TRACE("getComponent(name=" << name << ")");
Note: See TracChangeset for help on using the changeset viewer.