Changeset 16482


Ignore:
Timestamp:
05/30/13 14:55:19 (12 years ago)
Author:
tbretz
Message:
Added setData for const char* and for string
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DimDescriptionService.cc

    r15168 r16482  
    171171int DimDescribedService::Update(const char *data)
    172172{
    173     DimService::setData(const_cast<char*>(data));
     173    setData(data);
    174174    return Update();
    175175}
  • trunk/FACT++/src/DimDescriptionService.h

    r16475 r16482  
    6868    }
    6969
     70    void setData(const char *str)
     71    {
     72        DimService::setData(const_cast<char*>(str));
     73    }
     74
     75    void setData(const std::string &str)
     76    {
     77        setData(str.data());
     78    }
     79
    7080    template<class T>
    7181    void setData(const T &data)
Note: See TracChangeset for help on using the changeset viewer.