Far-NetBox icon indicating copy to clipboard operation
Far-NetBox copied to clipboard

Fix properties implementation

Open ssvine opened this issue 10 months ago • 1 comments

This pull request fixes this issue

Under the hood, this pull request fixes how properties are implemented. Consider the following code, that contain assignment of one property to another:

FCommandSession->CurrentDirectory = CurrentDirectory;

This assignment is embarassing, because it doesn't do what it's supposed to do. So, the current implementation of the properties is slightly different from the C++ Builder semantics. We need to disable copy / move constructors - we don't want properties to be copied / moved. We also need to disable copy / move operators on RO properties, and disable move operator on RW properties. We should use explicit copy operator for RW properties with correct semantics, i.e. copy values instead of copying setters and getters.

ssvine avatar Apr 15 '24 04:04 ssvine

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

sonarqubecloud[bot] avatar Apr 15 '24 05:04 sonarqubecloud[bot]