Skip to content

Commit

Permalink
some cpplinting
Browse files Browse the repository at this point in the history
  • Loading branch information
tvercaut committed May 4, 2023
1 parent 0c4515d commit f613ff6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// Author: Maurizio Kovacic
// email: maurizio.kovacic@gmail.com

#ifndef EXTERN_DOPEVECTOR_INCLUDE_DOPEVECTOR_INTERNAL_INLINES_DOPEVECTOR_HPP_
#define EXTERN_DOPEVECTOR_INCLUDE_DOPEVECTOR_INTERNAL_INLINES_DOPEVECTOR_HPP_

#include <array>
#include <memory>

Expand Down Expand Up @@ -870,3 +873,5 @@ inline bool DopeVector<T, 1>::operator!=(const DopeVector<T, 1> &r) const {
}

} // namespace dope

#endif // EXTERN_DOPEVECTOR_INCLUDE_DOPEVECTOR_INTERNAL_INLINES_DOPEVECTOR_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
// Author: Maurizio Kovacic
// email: maurizio.kovacic@gmail.com

#ifndef EXTERN_DOPEVECTOR_INCLUDE_DOPEVECTOR_INTERNAL_INLINES_EXPRESSION_HPP_
#define EXTERN_DOPEVECTOR_INCLUDE_DOPEVECTOR_INTERNAL_INLINES_EXPRESSION_HPP_

#include <functional>

#include "DopeVector/internal/Expression.h"

namespace dope {
Expand Down Expand Up @@ -115,3 +120,5 @@ operator%(const StaticArrayExpression<El, T, Dimension> &el,
} // namespace internal

} // namespace dope

#endif // EXTERN_DOPEVECTOR_INCLUDE_DOPEVECTOR_INTERNAL_INLINES_EXPRESSION_HPP_
13 changes: 11 additions & 2 deletions include/distance_transform/inlines/distance_transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
// Author: Giorgio Marcias
// email: marcias.giorgio@gmail.com

#ifndef INCLUDE_DISTANCE_TRANSFORM_INLINES_DISTANCE_TRANSFORM_HPP_
#define INCLUDE_DISTANCE_TRANSFORM_INLINES_DISTANCE_TRANSFORM_HPP_

#include <cmath>
#include <vector>
#include <algorithm>
#include <utility>
#include <limits>

#include "distance_transform/distance_transform.h"

Expand Down Expand Up @@ -270,7 +277,7 @@ inline void DistanceTransform::distanceL2(const dope::DopeVector<Scalar, 1> &f,
0)]; // locations of parabolas in lower envelope
double *z =
new double[f.sizeAt(0) + 1]; // locations of boundaries between parabolas
double s = double(0);
double s = static_cast<double>(0);
// initialization
v[0] = static_cast<dope::SizeType>(0);
z[0] = -std::numeric_limits<double>::max();
Expand Down Expand Up @@ -361,7 +368,7 @@ inline void DistanceTransform::distanceL2(
0)]; // locations of parabolas in lower envelope
double *z =
new double[f.sizeAt(0) + 1]; // locations of boundaries between parabolas
double s = double(0);
double s = static_cast<double>(0);
// initialization
v[0] = static_cast<dope::SizeType>(0);
z[0] = -std::numeric_limits<double>::max();
Expand Down Expand Up @@ -415,3 +422,5 @@ inline void DistanceTransform::element_wiseSquareRoot(
}

} // namespace dt

#endif // INCLUDE_DISTANCE_TRANSFORM_INLINES_DISTANCE_TRANSFORM_HPP_

0 comments on commit f613ff6

Please sign in to comment.