From 02305d560b3d5681b164f2556fa3507e4b2c240a Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 29 Nov 2012 21:20:26 +0800 Subject: [PATCH] .. --- src/util/TmpFiles.cc | 7 +++---- src/util/math.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/util/TmpFiles.cc b/src/util/TmpFiles.cc index 958ab6f..616ac28 100644 --- a/src/util/TmpFiles.cc +++ b/src/util/TmpFiles.cc @@ -16,10 +16,9 @@ using namespace std; namespace pdf2htmlEX { -TmpFiles::TmpFiles( const Param& param_ ) - : param( param_ ) -{ -} +TmpFiles::TmpFiles( const Param& param ) + : param( param ) +{ } TmpFiles::~TmpFiles() { diff --git a/src/util/math.h b/src/util/math.h index 2bfb6bc..9c9f5db 100644 --- a/src/util/math.h +++ b/src/util/math.h @@ -14,7 +14,7 @@ namespace pdf2htmlEX { -static inline double round(double x) { return (std::fabs(x) > EPS) ? x : 0.0; } +static inline double round(double x) { return (std::abs(x) > EPS) ? x : 0.0; } static inline bool equal(double x, double y) { return std::abs(x-y) < EPS; } static inline bool is_positive(double x) { return x > EPS; } static inline bool tm_equal(const double * tm1, const double * tm2, int size = 6)