fix messageType name

This commit is contained in:
Marty Kraimer
2012-05-10 06:28:27 -04:00
parent 7a60e02d5c
commit d320f00e96
4 changed files with 19 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ void PVField::message(String fieldName,String message,MessageType messageType)
requester->message(mess,messageType);
} else {
printf("%s %s %s\n",
messageTypeName[messageType].c_str(),
getMessageTypeName(messageType).c_str(),
fieldName.c_str(),
message.c_str());
}
@@ -148,7 +148,6 @@ void PVField::renameField(String newName)
}
std::tr1::shared_ptr<Structure> parentStructure = const_pointer_cast<Structure>(
parent->getStructure());
StringArray const &fieldNames = parentStructure->getFieldNames();
FieldConstPtrArray const &fields = parentStructure->getFields();
for(size_t i=0; i<fields.size(); i++) {
if(fields[i].get()==field.get()) {