Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CEGUIEXPORT InvalidRequestException : public Exception
- {
- ....
- };
- ListHeaderSegment*
- FalagardListHeader::createNewSegment(const String& name) const
- {
- // make sure this has been set
- if (d_segmentWidgetType.empty())
- {
- InvalidRequestException(
- "FalagardListHeader::createNewSegment - "
- "Segment widget type has not been set!");
- }
- return ....;
- }
- Most likely this is what should be written here: throw InvalidRequestException(....);
- 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 InvalidRequestException(FOO); fallistheader.cpp 74
- 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