diff options
author | David Tardon <dtardon@redhat.com> | 2017-10-20 13:06:21 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-10-20 13:44:20 +0200 |
commit | aef4af08f5a2a6e3301cfe3088975820185da81d (patch) | |
tree | 32b0c58435a52e9e2d09eb7b60d904cc556a3cc1 | |
parent | 04611b9f26cce0e7aa6c9901ae389243239ebc95 (diff) |
drop pointless casts
Change-Id: I2ac4f2922acd2f789bb1c7322c0d888ab1f31d0c
-rw-r--r-- | src/lib/VSDContentCollector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp index 04c58ec..c842852 100644 --- a/src/lib/VSDContentCollector.cpp +++ b/src/lib/VSDContentCollector.cpp @@ -1980,11 +1980,11 @@ void libvisio::VSDContentCollector::_generateBezierSegmentsFromNURBS(unsigned de mult = degree; if (mult < degree) { - double numer = (double)(knotVector[b] - knotVector[a]); + double numer = knotVector[b] - knotVector[a]; unsigned j = degree; std::vector<double> alphas(degree - 1, 0.0); for (; j >mult; j--) - alphas[j-mult-1] = numer/double(knotVector[a+j]-knotVector[a]); + alphas[j-mult-1] = numer/(knotVector[a+j]-knotVector[a]); unsigned r = degree - mult; for (j=1; j<=r; j++) { |