Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool String::grow(size_type new_size)
- {
- // check for too big
- if (max_size() <= new_size)
- std::length_error(
- "Resulting CEGUI::String would be too big");
- ....
- }
- Most likely this is what should be written here: throw std::length_error("Resulting CEGUI::String would be too big");
- This suspicious code was found in MTASA project by PVS-Studio static code analyzer.
- Warning message is:
- V596 The object was created but it is not being used. The 'throw' keyword could be missing: throw length_error(FOO); ceguistring.cpp 59
- 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