From 66063dce5af016ec9f8cf56446885ccef764eba7 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 12 Sep 2017 10:42:52 -0500 Subject: [PATCH] minor pvif --- pdbApp/pvif.cpp | 4 ---- pdbApp/pvif.h | 6 ++---- testApp/testpvif.cpp | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pdbApp/pvif.cpp b/pdbApp/pvif.cpp index afd5a40..38d15fe 100644 --- a/pdbApp/pvif.cpp +++ b/pdbApp/pvif.cpp @@ -491,10 +491,6 @@ short PVD2DBR(pvd::ScalarType pvt) } } -void PVIF::Init() -{ -} - pvd::StructureConstPtr PVIF::dtype(dbChannel* chan) { const short dbr = dbChannelFinalFieldType(chan); diff --git a/pdbApp/pvif.h b/pdbApp/pvif.h index d53648a..66d4fab 100644 --- a/pdbApp/pvif.h +++ b/pdbApp/pvif.h @@ -257,8 +257,8 @@ struct epicsShareClass PVIF { PVIF(dbChannel *ch, const epics::pvData::PVStructurePtr& p); virtual ~PVIF() {} - dbChannel *chan; - epics::pvData::PVStructurePtr pvalue; + dbChannel * const chan; + const epics::pvData::PVStructurePtr pvalue; //! Copy from PDB record to pvalue (call dbChannelGet()) //! caller must lock record @@ -269,8 +269,6 @@ struct epicsShareClass PVIF { //! Calculate DBE mask from changed bitset virtual unsigned dbe(const epics::pvData::BitSet& mask) =0; - static void Init(); - // fetch the structure description for a DBR type static epics::pvData::StructureConstPtr dtype(dbChannel *chan); diff --git a/testApp/testpvif.cpp b/testApp/testpvif.cpp index 2894d98..fd488f5 100644 --- a/testApp/testpvif.cpp +++ b/testApp/testpvif.cpp @@ -208,7 +208,6 @@ void testScalar() MAIN(testpvif) { testPlan(57); - PVIF::Init(); testScalar(); return testDone(); }