From 7b2197ca267af6ec0554ed0b0cbebecd18eef45a Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Wed, 5 Feb 2014 22:44:31 +0100 Subject: [PATCH] ca: replaced deprecated array method with new for rtems/vxworks --- pvAccessApp/ca/caChannel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pvAccessApp/ca/caChannel.cpp b/pvAccessApp/ca/caChannel.cpp index 455d448..99b682a 100644 --- a/pvAccessApp/ca/caChannel.cpp +++ b/pvAccessApp/ca/caChannel.cpp @@ -578,7 +578,10 @@ void copy_DBR(const void * dbr, unsigned c { std::tr1::shared_ptr value = std::tr1::static_pointer_cast(pvStructure->getScalarArrayField("value", pvInt)); - value->put(0, count, static_cast(dbr), 0); + PVIntArray::svector temp(value->reuse()); + temp.resize(count); + std::copy(static_cast(dbr), static_cast(dbr) + count, temp.begin()); + value->replace(freeze(temp)); } } #endif