Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DEVICE_OK 0
- #define DEVICE_ERR 1 // generic, undefined error
- #define DEVICE_INVALID_PROPERTY 2
- int MM::PropertyCollection::CreateProperty(....)
- {
- if (Find(pszName))
- return DEVICE_DUPLICATE_PROPERTY;
- ....
- if (!pProp->Set(pszValue))
- return false;
- ....
- return DEVICE_OK;
- }
- This suspicious code was found in Micro-Manager project by PVS-Studio static code analyzer.
- Warning message is:
- V601 The 'false' value is implicitly casted to the integer type. Property.cpp 364
- 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