PVS-StudioWarnings

PVS-Studio warning V662 for Rhino

Nov 17th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. MAP_LOCALE_DIRS m_LocaleStaticDirs;
  2. MAP_LOCALE_DIRS m_LocaleDataDirs;
  3.  
  4. void AOSConfiguration::debugDump(....) const
  5. {
  6.   ....
  7.   for (AOSConfiguration::MAP_LOCALE_DIRS::const_iterator
  8.        cit =  m_LocaleStaticDirs.begin();
  9.        cit != m_LocaleDataDirs.end();
  10.        ++cit)
  11.   ....
  12. }
  13.  
  14. This suspicious code was found in Rhino project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V662 Consider inspecting the loop expression. Different containers are utilized for setting up initial and final values of the iterator. aosconfiguration.cpp 93
  17.  
  18. 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