Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename MapType>
- void MzMLHandler<MapType>::characters(
- const XMLCh* const chars, const XMLSize_t)
- {
- ....
- if (optionalAttributeAsString_(data_processing_ref,
- attributes,
- s_data_processing_ref))
- {
- data_.back().meta.setDataProcessing(
- processing_[data_processing_ref]);
- }
- else
- {
- data_.back().meta.setDataProcessing(
- processing_[data_processing_ref]);
- }
- ....
- }
- Most likely this is what should be written here: processing_[data_processing_ref] ... processing_[default_processing_]
- This suspicious code was found in OpenMS project by PVS-Studio static code analyzer.
- Warning message is:
- V523 The 'then' statement is equivalent to the 'else' statement. mzmlhandler.h 534
- 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