const-ify string constants
yes really...
This commit is contained in:
@ -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)
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user