diff --git a/base/math.hpp b/base/math.hpp index 266429288f..6f1b2c1466 100644 --- a/base/math.hpp +++ b/base/math.hpp @@ -169,8 +169,8 @@ template T GCD(T a, T b) if ((a & 0x1) != 0 && (b & 0x1) != 0) { - T minV = min(a, b); - T maxV = max(a, b); + T const minV = min(a, b); + T const maxV = max(a, b); a = (maxV - minV) >> 1; b = minV; continue; diff --git a/base/src_point.cpp b/base/src_point.cpp index e88810e1bd..b6e7f55975 100644 --- a/base/src_point.cpp +++ b/base/src_point.cpp @@ -22,7 +22,7 @@ void SrcPoint::TruncateFileName() m_fileName = p[1]; } -} +} // namespace my string DebugPrint(my::SrcPoint const & srcPoint) {