Skip to content

Commit

Permalink
Merge pull request #1400 from fspindle/fix_quality_rules_9
Browse files Browse the repository at this point in the history
Apply misra c++ quality rules mainly to headers
  • Loading branch information
fspindle committed May 14, 2024
2 parents 029255c + 1056d74 commit 7ece4ea
Show file tree
Hide file tree
Showing 40 changed files with 1,113 additions and 821 deletions.
5 changes: 4 additions & 1 deletion cmake/VISPUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,10 @@ macro(vp_add_subdirectories lst subdir)
file(GLOB __subdirs RELATIVE "${__path}/${subdir}" "${__path}/${subdir}/*")
foreach(__s ${__subdirs})
if(EXISTS "${__path}/${subdir}/${__s}/CMakeLists.txt")
add_subdirectory("${__path}/${subdir}/${__s}" "${CMAKE_BINARY_DIR}/${subdir}/${__s}")
# Add subdir only if ut doesn't exist
if(NOT EXISTS "${CMAKE_BINARY_DIR}/${subdir}/${__s}")
add_subdirectory("${__path}/${subdir}/${__s}" "${CMAKE_BINARY_DIR}/${subdir}/${__s}")
endif()
endif()
endforeach()
endif()
Expand Down
6 changes: 3 additions & 3 deletions example/manual/image-manipulation/manGrab1394.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
*
*****************************************************************************/
/*!
\file manGrab1394-2.cpp
\file manGrab1394.cpp
\brief Images grabbing example with the vp1394TwoGrabber class.
*/
/*!
\example manGrab1394-2.cpp
\example manGrab1394.cpp
\brief Images grabbing example with the vp1394TwoGrabber class.
Expand Down Expand Up @@ -76,7 +76,7 @@ int main()
g.acquire(I[camera]);
}
}
delete [] I;
delete[] I;
return EXIT_SUCCESS;
}
catch (const vpException &e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Description:
* Description
* Simulation of a 3D visual servoing.
*
*****************************************************************************/
Expand Down Expand Up @@ -267,7 +267,7 @@ int main(int argc, const char **argv)

// Compute the camera translational velocity
vpColVector v(3);
v = lambda * (I - vpColVector::skew(tu_cRcd)) * ctcd;
v = lambda * (I - vpColVector::skew(vpColVector(tu_cRcd))) * ctcd;
// Compute the camera rotational velocity
vpColVector w(3);
w = lambda * tu_cRcd;
Expand Down

0 comments on commit 7ece4ea

Please sign in to comment.