Ignore:
Timestamp:
Apr 10, 2011, 11:21:33 AM (10 years ago)
Author:
tbretz
Message:
Replaced some strings with just characters.
File:
1 edited

Legend:

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

    r10340 r10355  
    132132DimInfo *ServiceList::CreateDimInfo(const string &str, const string &svc) const
    133133{
    134     return new DimInfo((str+"/"+svc).c_str(),
     134    return new DimInfo((str+'/'+svc).c_str(),
    135135                       const_cast<char*>(""),
    136136                       const_cast<ServiceList*>(this));
     
    388388string ServiceList::GetFormat(const string &server, const string &name) const
    389389{
    390     return GetFormat(server+"/"+name);
     390    return GetFormat(server+'/'+name);
    391391}
    392392
     
    423423vector<Description> ServiceList::GetDescriptions(const string &server, const string &name) const
    424424{
    425     return GetDescriptions(server+"/"+name);
     425    return GetDescriptions(server+'/'+name);
    426426}
    427427
     
    623623            continue;
    624624
    625         out << "" << kRed << "----- " << server << " -----" << endl;
     625        out << kRed << "----- " << server << " -----" << endl;
    626626
    627627        const vector<string> &lst = i->second;
     
    637637            const string fmt = GetFormat(server, *s);
    638638            if (!fmt.empty())
    639                 out << "[" << fmt << "]";
    640 
    641             const string svc = server + "/" + *s;
     639                out << '[' << fmt << ']';
     640
     641            const string svc = server + '/' + *s;
    642642
    643643            const DescriptionMap::const_iterator v = fDescriptionList.find(svc);
     
    741741
    742742    // Compile the command which will be sent to the state-machine
    743     const string cmd = server + "/" + name;
     743    const string cmd = server + '/' + name;
    744744
    745745    if (!HasService(server, name))
Note: See TracChangeset for help on using the changeset viewer.