Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TraceFitter<PeakType>* chooseTraceFitter_(double& tau)
- {
- // choose fitter
- if (param_.getValue("feature:rt_shape") == "asymmetric")
- {
- LOG_DEBUG << "use asymmetric rt peak shape" << std::endl;
- tau = -1.0;
- return new EGHTraceFitter<PeakType>();
- }
- ....
- }
- virtual void run()
- {
- ....
- #pragma omp parallel for
- for (SignedSize i = 0; i < (SignedSize)seeds.size(); ++i)
- {
- ....
- TraceFitter<PeakType>* fitter = chooseTraceFitter_(egh_tau);
- ....
- }
- ....
- }
- This suspicious code was found in OpenMS project by PVS-Studio static code analyzer.
- Warning message is:
- V1302 The 'new' operator cannot be used outside of a try..catch block in a parallel section. featurefinderalgorithmpicked.h 1926
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment