fix for crash in pvDataCPP testV3Channel

This commit is contained in:
Marty Kraimer
2012-10-02 16:01:03 -04:00
parent cf44ec1191
commit ced439f4c4
4 changed files with 423 additions and 400 deletions

View File

@@ -191,7 +191,6 @@ void PVField::toString(StringBuilder buf)
void PVField::toString(StringBuilder buf,int indentLevel)
{
static ConvertPtr convert = getConvert();
convert->getString(buf,this,indentLevel);
if(pvAuxInfo.get()!=NULL) pvAuxInfo->toString(buf,indentLevel);
}
@@ -201,7 +200,6 @@ std::ostream& PVField::dumpValue(std::ostream& o) const
// default implementation
// each PVField class should implement it to avoid switch statement
// and string reallocation
static ConvertPtr convert = getConvert();
String tmp;
convert->getString(&tmp,this,0);
return o << tmp;