Skip to content

Commit dfafdb2

Browse files
committed
Re-ordered initializer lists in Watermark class constructor
1 parent 144b0f5 commit dfafdb2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
20/02/2025:
2+
- Re-ordered initializer lists in Watermark class constructor
3+
4+
15
19/02/2025:
26
- Refactor of watermarking code to allow it to be applied to JPEG2000 and JPEG source images when
37
requesting a region through the CVT function. Watermarking now applied as the very final step after

src/Watermark.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,22 @@ class Watermark {
7474

7575
/// Constructor
7676
Watermark() :
77-
_isSet( false ),
78-
_watermark( NULL ),
7977
_opacity( 0.0 ),
80-
_probability( 0.0 ) {};
78+
_probability( 0.0 ),
79+
_isSet( false ),
80+
_watermark( NULL ){};
8181

8282
/// Constructor
8383
/** @param file image file path
8484
@param opacity opacity applied to watermark
85-
@param probability probability that watermark will be applied to a particular tile
85+
@param probability probability (in range 0.0 -> 1.0) that watermark will be applied to a particular tile
8686
*/
8787
Watermark( const std::string& file, float opacity, float probability ) :
88-
_image( file ),
8988
_width( 0 ),
9089
_height( 0 ),
9190
_channels( 0 ),
9291
_bpc( 0 ),
92+
_image( file ),
9393
_opacity( opacity ),
9494
_probability( probability ),
9595
_isSet( false ),

0 commit comments

Comments
 (0)