P-McG / BT-MatML-Editor

Material Text Editor for the xml MatML schema (https://www.matml.org)
GNU General Public License v3.0
6 stars 0 forks source link

Maintain connectivity when changing Id's #10

Open P-McG opened 2 years ago

P-McG commented 2 years ago

Modifing uuid->id should swap throughout the MatML_Doc.

P-McG commented 2 years ago

Changes to the ID is reflected by changing the IDRefs.

P-McG commented 2 years ago

Linux build throws multiple

/media/sf_BT-MatML-Editor/src/BT_MatML_GatherIDRefs.cpp:223:46: error: taking address of rvalue [-fpermissive]

with respect to the stongtypes

P-McG commented 2 years ago

Linux build had a bug regarding the memory address of tmp. Change the code to be more explicit. Gave the ability of the compiler to work it out, but the code still takes an address of a temp. This may work because the original data is still within the MatML Data tree and the compiler optimize the additional step out. More work needs to be done on why this is now acceptable to the compiler while before it was not. The Bug is to remain a bug.