Browse Source

added missing const

Former-commit-id: 558c77229ce421eecda0ba670832c26a7f076fd8
Daniele Panozzo 9 years ago
parent
commit
a6e19e8b01
2 changed files with 3 additions and 3 deletions
  1. 2 2
      include/igl/harmonic.cpp
  2. 1 1
      include/igl/harmonic.h

+ 2 - 2
include/igl/harmonic.cpp

@@ -26,7 +26,7 @@ IGL_INLINE bool igl::harmonic(
   const Eigen::PlainObjectBase<DerivedF> & F,
   const Eigen::PlainObjectBase<Derivedb> & b,
   const Eigen::PlainObjectBase<Derivedbc> & bc,
-  int k,
+  const int k,
   Eigen::PlainObjectBase<DerivedW> & W)
 {
   using namespace Eigen;
@@ -78,7 +78,7 @@ IGL_INLINE bool igl::harmonic(
   const Eigen::PlainObjectBase<DerivedF> & F,
   const Eigen::PlainObjectBase<Derivedb> & b,
   const Eigen::PlainObjectBase<Derivedbc> & bc,
-  int k,
+  const int k,
   Eigen::PlainObjectBase<DerivedW> & W)
 {
   using namespace Eigen;

+ 1 - 1
include/igl/harmonic.h

@@ -57,7 +57,7 @@ namespace igl
    const Eigen::PlainObjectBase<DerivedF> & F,
    const Eigen::PlainObjectBase<Derivedb> & b,
    const Eigen::PlainObjectBase<Derivedbc> & bc,
-   int k,
+   const int k,
    Eigen::PlainObjectBase<DerivedW> & W);
  };