using new copy API

This commit is contained in:
Matej Sekoranja
2015-02-18 10:04:19 +01:00
parent 35dcbf35b3
commit 36dac883f4
8 changed files with 6 additions and 17 deletions

View File

@@ -9,7 +9,6 @@
* @date 2014.04.16
*/
#include <pv/convert.h>
#include <pv/monitorPlugin.h>
#define epicsExportSharedSymbols
@@ -23,7 +22,6 @@ using std::string;
namespace epics { namespace pvDatabase {
static string pluginName("onChange");
static ConvertPtr convert(getConvert());
class OnChangePlugin;
typedef std::tr1::shared_ptr<OnChangePlugin> OnChangePluginPtr;
@@ -58,9 +56,9 @@ public:
PVStructurePtr const &pvTop,
MonitorElementPtr const &monitorElement)
{
bool isSame = convert->equals(pvNew,pvField);
bool isSame = (*pvNew == *pvField);
if(isSame) return false;
convert->copy(pvNew,pvField);
pvField->copyUnchecked(*pvNew);
return raiseMonitor;
}
private: