소스 검색

added missing const

Former-commit-id: 558c77229ce421eecda0ba670832c26a7f076fd8
Daniele Panozzo 9 년 전
부모
커밋
a6e19e8b01
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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);
  };