New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make pointers to error strings const in TinyXML #5947
Make pointers to error strings const in TinyXML #5947
Conversation
The static analyzer (correctly) pointed to the fact that the array of pointers to the error strings in TinyXML kept one from changing the strings but did not keep one from changing the addresses of the pointers in the array. Making the pointers const solves that problem and guarantees immutability.
A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_7_3_X. Make pointers to error strings const in TinyXML It involves the following packages: FWCore/Utilities @cmsbuild, @Dr15Jones, @ktf, @nclopezo can you please review it and eventually sign? Thanks. |
+1 |
…stInTinyXML FWCore/Utilities -- Make pointers to error strings const in TinyXML
The static analyzer (correctly) pointed to the fact that the array of pointers to the error strings in TinyXML kept one from changing the strings but did not keep one from changing the addresses of the pointers in the array. Making the pointers const solves that problem and guarantees immutability.