Skip to content

Commit

Permalink
Correct spelling of version tag in pragma read.
Browse files Browse the repository at this point in the history
It needs to be 'version' without a trailing s
  • Loading branch information
pcanal committed Dec 19, 2023
1 parent 746227f commit 2345f76
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions root/io/issue-7754/read_cmssw_class_v3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ void Print(const Holder &h)
}

#ifdef __ROOTCLING__
#pragma read sourceClass="SubContent" targetClass="SubContent" versions="[2]" source="int fValue" target="fValue" code="{ fValue = 100 * onfile.fValue; }"
#pragma read sourceClass="SubContent" targetClass="SubContent" versions="[2]" source="int fValue" target="fNewValue" code="{ fNewValue = 3000 * onfile.fValue; }"
#pragma read sourceClass="Content" targetClass="Content" versions="[2]" source="float fAfter" target="fAfter" code="{ fAfter = 10 * onfile.fAfter; }"
#pragma read sourceClass="Content" targetClass="Content" versions="[2]" source="float fAfter" target="fNewData" code="{ fNewData = 20 * onfile.fAfter; }"
#pragma read sourceClass="SubContent" targetClass="SubContent" version="[2]" source="int fValue" target="fValue" code="{ fValue = 100 * onfile.fValue; }"
#pragma read sourceClass="SubContent" targetClass="SubContent" version="[2]" source="int fValue" target="fNewValue" code="{ fNewValue = 3000 * onfile.fValue; }"
#pragma read sourceClass="Content" targetClass="Content" version="[2]" source="float fAfter" target="fAfter" code="{ fAfter = 10 * onfile.fAfter; }"
#pragma read sourceClass="Content" targetClass="Content" version="[2]" source="float fAfter" target="fNewData" code="{ fNewData = 20 * onfile.fAfter; }"

#endif

Expand Down
6 changes: 3 additions & 3 deletions root/io/issue-9899/read_cmssw_class_v3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ struct Values {

#ifdef __ROOTCLING__
#pragma read sourceClass="RefVectorBase" targetClass="RefVectorBase" source="" \
versions="1-" target="fTransient" code="{ fTransient.clear(); }"
version="1-" target="fTransient" code="{ fTransient.clear(); }"
#pragma read sourceClass="RefVectorMemberPointersHolder" targetClass="RefVectorMemberPointersHolder" source="" \
versions="1-" target="fTransient" code="{ fTransient.clear(); }"
version="1-" target="fTransient" code="{ fTransient.clear(); }"
#pragma read sourceClass="LowData" targetClass="LowData" source="Values fValues" \
versions="1-" target="fNewValues" code="{ fNewValues = onfile.fValues; }"
version="1-" target="fNewValues" code="{ fNewValues = onfile.fValues; }"
#endif

struct LowData {
Expand Down
4 changes: 2 additions & 2 deletions root/io/issue-9899/write_cmssw_class_v2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ struct Values {

#ifdef __ROOTCLING__
#pragma read sourceClass="RefVectorBase" targetClass="RefVectorBase" source="" \
versions="1-" target="fTransient" code="{ fTransient.clear(); }"
version="1-" target="fTransient" code="{ fTransient.clear(); }"
#pragma read sourceClass="RefVectorMemberPointersHolder" targetClass="RefVectorMemberPointersHolder" source="" \
versions="1-" target="fTransient" code="{ fTransient.clear(); }"
version="1-" target="fTransient" code="{ fTransient.clear(); }"
#endif

struct LowData {
Expand Down
2 changes: 1 addition & 1 deletion root/io/transient/execAtomTransient.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Holder {

#ifdef __ROOTCLING__
#pragma link C++ class Holder+;
#pragma read sourceClass="Holder" targetClass="Holder" versions="[1-]" source="" target="fCache" code="{ fCache = nullptr; }"
#pragma read sourceClass="Holder" targetClass="Holder" version="[1-]" source="" target="fCache" code="{ fCache = nullptr; }"
#endif


Expand Down

0 comments on commit 2345f76

Please sign in to comment.