summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/bitmap.hxx10
-rw-r--r--vcl/source/gdi/bitmap3.cxx5
2 files changed, 10 insertions, 5 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index 9a2fe916ddc0..30d7349a5673 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -208,6 +208,7 @@ class Lanczos3Kernel : public Kernel
{
public:
+ Lanczos3Kernel() : Kernel () {}
virtual double GetWidth() const { return 3.0; }
virtual double Calculate (double x) const
{
@@ -226,6 +227,9 @@ public:
};
class BicubicKernel : public Kernel {
+public:
+ BicubicKernel() : Kernel () {}
+private:
virtual double GetWidth() const { return 2.0; }
virtual double Calculate (double x) const
{
@@ -247,6 +251,9 @@ class BicubicKernel : public Kernel {
};
class BilinearKernel : public Kernel {
+public:
+ BilinearKernel() : Kernel () {}
+private:
virtual double GetWidth() const { return 1.0; }
virtual double Calculate (double x) const
{
@@ -263,6 +270,9 @@ class BilinearKernel : public Kernel {
};
class BoxKernel : public Kernel {
+public:
+ BoxKernel() : Kernel () {}
+private:
virtual double GetWidth() const { return 0.5; }
virtual double Calculate (double x) const
{
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index f4077eac33c3..80852e6e80e1 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -1500,7 +1500,6 @@ sal_Bool Bitmap::ImplScaleSuper(
else
nWeightY = nMax;
- nWeightY = nWeightY ;
nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -1645,7 +1644,6 @@ sal_Bool Bitmap::ImplScaleSuper(
else
nWeightY = nMax;
- nWeightY = nWeightY ;
nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -1792,7 +1790,6 @@ sal_Bool Bitmap::ImplScaleSuper(
else
nWeightY = nMax;
- nWeightY = nWeightY ;
nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -1937,7 +1934,6 @@ sal_Bool Bitmap::ImplScaleSuper(
else
nWeightY = nMax;
- nWeightY = nWeightY ;
nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -2080,7 +2076,6 @@ sal_Bool Bitmap::ImplScaleSuper(
else
nWeightY = nMax;
- nWeightY = nWeightY ;
nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
nSumR += nWeightY * ( nSumRowR / nTotalWeightX );