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

@ -937,8 +937,6 @@ void printValue(std::string const & channelName, PVStructure::shared_pointer con
dumpValue(channelName, pv);
}
static string emptyString;
// only in ValueOnlyMode
// NOTE: names might be empty
void printValues(shared_vector<const string> const & names, vector<PVStructure::shared_pointer> const & values)

View File

@ -67,8 +67,6 @@ string toHex(int8* ba, size_t len) {
}
static string emptyString;
std::size_t readSize(ByteBuffer* buffer) {
int8 b = buffer->getByte();
if(b==-1)
@ -94,7 +92,7 @@ string deserializeString(ByteBuffer* buffer) {
return str;
}
else
return emptyString;
return std::string();
}
struct ServerEntry {