update code to the new method, removed copy from convert

This commit is contained in:
Matej Sekoranja committed 2015-02-17 18:56:56 +01:00
1 parent cc1536b6e1
commit 4cb3c22221
12 files changed
+22 -534

No files matched your search

+1 -3
View File
@@ -14,7 +14,6 @@
#define epicsExportSharedSymbols
#include <pv/pvData.h>
#include <pv/convert.h>
#include <pv/factory.h>
#include <pv/serializeHelper.h>
@@ -246,8 +245,7 @@ void PVUnionArray::copy(const PVUnionArray& from)
if(isImmutable())
throw std::invalid_argument("destination is immutable");
// TODO relaxed compare?
if(*getUnionArray().get() != *from.getUnionArray().get())
if(*getUnionArray() != *from.getUnionArray())
throw std::invalid_argument("unionArray definitions do not match");
copyUnchecked(from);