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

@ -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 {