Skip to content
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

Remove char buffer and sprintf with std::string/std::to_string #17270

Merged
merged 1 commit into from Jan 25, 2017

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Jan 25, 2017

Originally I expected ROOT classes to support std::string, but they
actually take const char * instead thus I had to use .c_str(), which is
not the nicest code. Hopefully ROOT classess makes a copy and not just
saves the pointer internally as std::string will be temporaries.

We should make sure we don't have dangling pointers somewhere here.

Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch

Originally I expected ROOT classes to support std::string, but they
actually take const char * instead thus I had to use .c_str(), which is
not the nicest code. Hopefully ROOT classess makes a copy and not just
saves the pointer internally as std::string will be temporaries.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlt for CMSSW_9_0_X.

It involves the following packages:

Validation/Geometry

@civanch, @Dr15Jones, @ianna, @mdhildreth, @dmitrijus, @cmsbuild, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks.
@davidlange6, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@davidlt
Copy link
Contributor Author

davidlt commented Jan 25, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 25, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17422/console Started: 2017/01/25 06:38

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

@ianna
Copy link
Contributor

ianna commented Jan 25, 2017

+1

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 576112c into cms-sw:CMSSW_9_0_X Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants