Status: remove m_emptyStringtring

No reason to have a global for this.
This commit is contained in:
Michael Davidsaver
2016-03-17 11:00:53 -04:00
parent bd4b65225c
commit d35010c1cb
2 changed files with 3 additions and 5 deletions

View File

@@ -103,9 +103,7 @@ namespace epics { namespace pvData {
void dump(std::ostream& o) const;
private:
static std::string m_emptyStringtring;
StatusType m_statusType;
std::string m_message;
std::string m_stackDump;

View File

@@ -17,7 +17,6 @@ using std::string;
namespace epics { namespace pvData {
const char* Status::StatusTypeName[] = { "OK", "WARNING", "ERROR", "FATAL" };
string Status::m_emptyStringtring;
Status Status::Ok;
@@ -102,7 +101,8 @@ void Status::deserialize(ByteBuffer *buffer, DeserializableControl *flusher)
if (m_statusType != STATUSTYPE_OK)
{
m_statusType = STATUSTYPE_OK;
m_message = m_stackDump = m_emptyStringtring;
m_message.clear();
m_stackDump.clear();
}
}
else