Add override keyword. Thanks @Floessie
This commit is contained in:
@@ -257,7 +257,7 @@ public:
|
||||
|
||||
/* If any of the required allocation fails, "width" and "height" are set to -1, and all remaining buffer are freed
|
||||
* Can be safely used to reallocate an existing image */
|
||||
void allocate (int W, int H)
|
||||
void allocate (int W, int H) override
|
||||
{
|
||||
|
||||
if (W == width && H == height) {
|
||||
@@ -327,7 +327,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void rotate (int deg)
|
||||
void rotate (int deg) override
|
||||
{
|
||||
|
||||
if (deg == 90) {
|
||||
@@ -446,7 +446,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void hflip ()
|
||||
void hflip () override
|
||||
{
|
||||
int width2 = width / 2;
|
||||
|
||||
@@ -470,7 +470,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
void vflip ()
|
||||
void vflip () override
|
||||
{
|
||||
|
||||
int height2 = height / 2;
|
||||
@@ -648,7 +648,7 @@ public:
|
||||
|
||||
/* If any of the required allocation fails, "width" and "height" are set to -1, and all remaining buffer are freed
|
||||
* Can be safely used to reallocate an existing image */
|
||||
void allocate (int W, int H)
|
||||
void allocate (int W, int H) override
|
||||
{
|
||||
|
||||
if (W == width && H == height) {
|
||||
@@ -736,7 +736,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void rotate (int deg)
|
||||
void rotate (int deg) override
|
||||
{
|
||||
|
||||
if (deg == 90) {
|
||||
@@ -863,7 +863,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void hflip ()
|
||||
void hflip () override
|
||||
{
|
||||
int width2 = width / 2;
|
||||
|
||||
@@ -895,7 +895,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
void vflip ()
|
||||
void vflip () override
|
||||
{
|
||||
|
||||
int height2 = height / 2;
|
||||
@@ -961,7 +961,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const override
|
||||
{
|
||||
histogram.clear();
|
||||
avg_r = avg_g = avg_b = 0.;
|
||||
@@ -993,7 +993,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void getAutoWBMultipliers (double &rm, double &gm, double &bm) const
|
||||
void getAutoWBMultipliers (double &rm, double &gm, double &bm) const override
|
||||
{
|
||||
|
||||
double avg_r = 0.;
|
||||
@@ -1067,9 +1067,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void getSpotWBData (double &reds, double &greens, double &blues, int &rn, int &gn, int &bn,
|
||||
void getSpotWBData (double &reds, double &greens, double &blues, int &rn, int &gn, int &bn,
|
||||
std::vector<Coord2D> &red, std::vector<Coord2D> &green, std::vector<Coord2D> &blue,
|
||||
int tran) const
|
||||
int tran) const override
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
@@ -1297,7 +1297,7 @@ public:
|
||||
* If any of the required allocation fails, "width" and "height" are set to -1, and all remaining buffer are freed
|
||||
* Can be safely used to reallocate an existing image or to free up it's memory with "allocate (0,0);"
|
||||
*/
|
||||
void allocate (int W, int H)
|
||||
void allocate (int W, int H) override
|
||||
{
|
||||
|
||||
if (W == width && H == height) {
|
||||
@@ -1351,7 +1351,7 @@ public:
|
||||
memcpy (dest->data, data, 3 * width * height * sizeof(T));
|
||||
}
|
||||
|
||||
void rotate (int deg)
|
||||
void rotate (int deg) override
|
||||
{
|
||||
|
||||
if (deg == 90) {
|
||||
@@ -1485,7 +1485,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void hflip ()
|
||||
void hflip () override
|
||||
{
|
||||
int width2 = width / 2;
|
||||
|
||||
@@ -1521,7 +1521,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void vflip ()
|
||||
void vflip () override
|
||||
{
|
||||
|
||||
AlignedBuffer<T> lBuffer(3 * width);
|
||||
@@ -1570,7 +1570,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const override
|
||||
{
|
||||
histogram.clear();
|
||||
avg_r = avg_g = avg_b = 0.;
|
||||
@@ -1602,7 +1602,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void getAutoWBMultipliers (double &rm, double &gm, double &bm) const
|
||||
void getAutoWBMultipliers (double &rm, double &gm, double &bm) const override
|
||||
{
|
||||
|
||||
double avg_r = 0.;
|
||||
@@ -1676,9 +1676,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void getSpotWBData (double &reds, double &greens, double &blues, int &rn, int &gn, int &bn,
|
||||
void getSpotWBData (double &reds, double &greens, double &blues, int &rn, int &gn, int &bn,
|
||||
std::vector<Coord2D> &red, std::vector<Coord2D> &green, std::vector<Coord2D> &blue,
|
||||
int tran) const
|
||||
int tran) const override
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
@@ -1782,14 +1782,14 @@ public:
|
||||
class IImagefloat : public IImage, public PlanarRGBData<float>
|
||||
{
|
||||
public:
|
||||
virtual ~IImagefloat() {}
|
||||
~IImagefloat() override {}
|
||||
};
|
||||
|
||||
/** @brief This class represents an image having a classical 8 bits/pixel representation */
|
||||
class IImage8 : public IImage, public ChunkyRGBData<unsigned char>
|
||||
{
|
||||
public:
|
||||
virtual ~IImage8() {}
|
||||
~IImage8() override {}
|
||||
};
|
||||
|
||||
/** @brief This class represents an image having a 16 bits/pixel planar representation.
|
||||
@@ -1797,7 +1797,7 @@ public:
|
||||
class IImage16 : public IImage, public PlanarRGBData<unsigned short>
|
||||
{
|
||||
public:
|
||||
virtual ~IImage16() {}
|
||||
~IImage16() override {}
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user