diff --git a/src/copy/pvArrayPlugin.cpp b/src/copy/pvArrayPlugin.cpp index 01b646a..fb2322c 100644 --- a/src/copy/pvArrayPlugin.cpp +++ b/src/copy/pvArrayPlugin.cpp @@ -168,36 +168,36 @@ bool PVArrayFilter::filter(const PVFieldPtr & pvField,const BitSetPtr & bitSet,b long end = this->end; long no_elements = masterArray->getLength(); if(start<0) { - start = no_elements+start; - if(start<0) start = 0; + start = no_elements+start; + if(start<0) start = 0; } if (end < 0) { - end = no_elements + end; - if (end < 0) end = 0; + end = no_elements + end; + if (end < 0) end = 0; } if(toCopy) { - if (end >= no_elements) end = no_elements - 1; - if (end - start >= 0) len = 1 + (end - start) / increment; - if(len<=0 || start>=no_elements) { - copyArray->setLength(0); - return true; - } - long indfrom = start; - long indto = 0; - copyArray->setCapacity(len); - if(increment==1) { + if (end >= no_elements) end = no_elements - 1; + if (end - start >= 0) len = 1 + (end - start) / increment; + if(len<=0 || start>=no_elements) { + copyArray->setLength(0); + return true; + } + long indfrom = start; + long indto = 0; + copyArray->setCapacity(len); + if(increment==1) { copy(*masterArray,indfrom,1,*copyArray,indto,1,len); - } else { - for(long i=0; isetLength(len); + } else { + for(long i=0; isetLength(len); bitSet->set(pvField->getFieldOffset()); - return true; + return true; } if (end - start >= 0) len = 1 + (end - start) / increment; if(len<=0) return true; @@ -205,13 +205,13 @@ bool PVArrayFilter::filter(const PVFieldPtr & pvField,const BitSetPtr & bitSet,b long indfrom = 0; long indto = start; if(increment==1) { - copy(*copyArray,indfrom,1,*masterArray,indto,1,len); + copy(*copyArray,indfrom,1,*masterArray,indto,1,len); } else { - for(long i=0; ipostPut(); return true; @@ -219,7 +219,7 @@ bool PVArrayFilter::filter(const PVFieldPtr & pvField,const BitSetPtr & bitSet,b string PVArrayFilter::getName() { - return name; + return name; } }} diff --git a/src/copy/pvCopy.cpp b/src/copy/pvCopy.cpp index 09fe4f3..fdb545c 100644 --- a/src/copy/pvCopy.cpp +++ b/src/copy/pvCopy.cpp @@ -648,7 +648,7 @@ void PVCopy::traverseMasterInitPlugin(CopyNodePtr const & node) { PVFieldPtr pvField = node->masterPVField; PVStructurePtr pvOptions = node->options; - if(pvOptions) initPlugin(node,pvOptions,pvField); + if(pvOptions) initPlugin(node,pvOptions,pvField); if(!node->isStructure) return; CopyStructureNodePtr structureNode = static_pointer_cast(node); CopyNodePtrArrayPtr nodes = structureNode->nodes; @@ -710,7 +710,7 @@ void PVCopy::setIgnore(CopyNodePtr const &node) { CopyNodePtrArrayPtr nodes = structureNode->nodes; for(size_t i=0; isize(); ++i) { CopyNodePtr node = (*nodes)[i]; - setIgnore(node); } + setIgnore(node); } } else { size_t num = node->masterPVField->getNumberFields(); if(num>1) { diff --git a/src/copy/pvDeadbandPlugin.cpp b/src/copy/pvDeadbandPlugin.cpp index c111ac9..c995d13 100644 --- a/src/copy/pvDeadbandPlugin.cpp +++ b/src/copy/pvDeadbandPlugin.cpp @@ -128,7 +128,7 @@ bool PVDeadbandFilter::filter(const PVFieldPtr & pvCopy,const BitSetPtr & bitSet string PVDeadbandFilter::getName() { - return name; + return name; } }} diff --git a/src/copy/pvTimestampPlugin.cpp b/src/copy/pvTimestampPlugin.cpp index 07e26b6..db9627e 100644 --- a/src/copy/pvTimestampPlugin.cpp +++ b/src/copy/pvTimestampPlugin.cpp @@ -89,7 +89,7 @@ PVTimestampFilter::PVTimestampFilter(bool current,bool copy,PVFieldPtr const & m bool PVTimestampFilter::filter(const PVFieldPtr & pvCopy,const BitSetPtr & bitSet,bool toCopy) { - if(current) { + if(current) { timeStamp.getCurrent(); if(toCopy) { if(!pvTimeStamp.attach(pvCopy)) return false; @@ -100,7 +100,7 @@ bool PVTimestampFilter::filter(const PVFieldPtr & pvCopy,const BitSetPtr & bitSe bitSet->set(pvCopy->getFieldOffset()); return true; } - if(copy) { + if(copy) { if(toCopy) { if(!pvTimeStamp.attach(master)) return false; pvTimeStamp.get(timeStamp); @@ -120,7 +120,7 @@ bool PVTimestampFilter::filter(const PVFieldPtr & pvCopy,const BitSetPtr & bitSe string PVTimestampFilter::getName() { - return name; + return name; } }} diff --git a/test/src/listener.h b/test/src/listener.h index 9b8c0a2..694ba7a 100644 --- a/test/src/listener.h +++ b/test/src/listener.h @@ -26,7 +26,7 @@ #ifdef listenerEpicsExportSharedSymbols # define epicsExportSharedSymbols -# undef listenerEpicsExportSharedSymbols +# undef listenerEpicsExportSharedSymbols #endif #include diff --git a/test/src/powerSupply.h b/test/src/powerSupply.h index f92100b..40feb60 100644 --- a/test/src/powerSupply.h +++ b/test/src/powerSupply.h @@ -25,7 +25,7 @@ #ifdef powerSupplyEpicsExportSharedSymbols # define epicsExportSharedSymbols -# undef powerSupplyEpicsExportSharedSymbols +# undef powerSupplyEpicsExportSharedSymbols #endif #include diff --git a/test/src/recordClient.h b/test/src/recordClient.h index 3f42c12..31eb63d 100644 --- a/test/src/recordClient.h +++ b/test/src/recordClient.h @@ -25,7 +25,7 @@ #ifdef pvRecordClientEpicsExportSharedSymbols # define epicsExportSharedSymbols -# undef pvRecordClientEpicsExportSharedSymbols +# undef pvRecordClientEpicsExportSharedSymbols #endif #include