const-ify string constants

yes really...
This commit is contained in:
Michael Davidsaver
2018-05-18 10:12:34 -07:00
parent 6abfe9d196
commit 6ccca1ce58
11 changed files with 31 additions and 37 deletions

View File

@@ -248,9 +248,9 @@ class RPCChannelProvider :
public:
POINTER_DEFINITIONS(RPCChannelProvider);
static string PROVIDER_NAME;
static const string PROVIDER_NAME;
static Status noSuchChannelStatus;
static const Status noSuchChannelStatus;
// TODO thread pool support
@@ -413,8 +413,8 @@ private:
epics::pvData::Mutex m_mutex;
};
string RPCChannelProvider::PROVIDER_NAME("rpcService");
Status RPCChannelProvider::noSuchChannelStatus(Status::STATUSTYPE_ERROR, "no such channel");
const string RPCChannelProvider::PROVIDER_NAME("rpcService");
const Status RPCChannelProvider::noSuchChannelStatus(Status::STATUSTYPE_ERROR, "no such channel");
RPCServer::RPCServer(const Configuration::const_shared_pointer &conf)