pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


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

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

ons-9111c292f95f2fb0.css" /> 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
Copy link
Copy Markdown
Contributor

ekot1 commented May 25, 2026

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy