From 8be5c48677181234b7e8b21bf4d36951cec0f5fe Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Fri, 29 Jan 2016 16:19:51 -0500 Subject: [PATCH] minor --- testApp/testmon.cpp | 1 - testApp/testtest.cpp | 1 - testApp/utilities.h | 4 ++++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/testApp/testmon.cpp b/testApp/testmon.cpp index 236ede5..91049db 100644 --- a/testApp/testmon.cpp +++ b/testApp/testmon.cpp @@ -63,7 +63,6 @@ struct TestMonitor { testAbort("channel \"test1\" not connected"); test1_x = 1; test1_y = 2; - test1->post(); } ~TestMonitor() diff --git a/testApp/testtest.cpp b/testApp/testtest.cpp index 2f0ff6b..602c6cf 100644 --- a/testApp/testtest.cpp +++ b/testApp/testtest.cpp @@ -37,7 +37,6 @@ void testmonitor() x = 42; y = 15; - pv->post(); testDiag("Create channel"); TestChannelRequester::shared_pointer creq(new TestChannelRequester); diff --git a/testApp/utilities.h b/testApp/utilities.h index 30fce8f..e5e43de 100644 --- a/testApp/utilities.h +++ b/testApp/utilities.h @@ -54,6 +54,10 @@ struct ScalarAccessor { field->putFrom(v); return *this; } + ScalarAccessor& operator+=(T v) { + field->putFrom(field->getAs()+v); + return *this; + } }; struct TestChannelRequester : public epics::pvAccess::ChannelRequester