Content-Length: 313274 | pFad | http://github.com/DelphiCodeCoverage/DelphiCodeCoverage/pull/51

ad Fix compilation for Delphi XE6 by GuilhermeAlecrim7K · Pull Request #51 · DelphiCodeCoverage/DelphiCodeCoverage · GitHub
Skip to content

Fix compilation for Delphi XE6 - #51

Open
GuilhermeAlecrim7K wants to merge 1 commit into
DelphiCodeCoverage:masterfrom
GuilhermeAlecrim7K:xe6-compilation
Open

Fix compilation for Delphi XE6#51
GuilhermeAlecrim7K wants to merge 1 commit into
DelphiCodeCoverage:masterfrom
GuilhermeAlecrim7K:xe6-compilation

Conversation

@GuilhermeAlecrim7K

Copy link
Copy Markdown

Summary

  • Replace direct TNetEncoding.HTML.Encode calls in HTMLCoverageReport.pas with a new private HtmlEncode wrapper that conditionally falls back to a StringReplace-based implementation when CompilerVersion < 28.0 (pre-XE7), since System.NetEncoding seems to have been introduced in XE7.
  • Guard the System.NetEncoding uses clause with {$IF CompilerVersion >= 28.0} so XE6 builds don't fail on the missing unit.
  • Refactor inline const declaration inside a procedure body in CoverageConfigurationTest.pas into a local var, since inline constants in routine bodies are not supported by XE6.

@ekot1

ekot1 commented May 25, 2026

Copy link
Copy Markdown
Contributor

I don't see the reason to make it compatible with old compilers since it is not a library but a tool. Anyone can use free Community Edition Delphi to compile it with recent version.

@GuilhermeAlecrim7K

Copy link
Copy Markdown
Author

It allows for companies that have licenses only on older versions to be able to use this tool. This is specially common here in Brazil. Embarcadero doesn't allow Community Edition installations alongside with paid license installations.

Besides, the changes are extremely simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/DelphiCodeCoverage/DelphiCodeCoverage/pull/51

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy