diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-25 14:03:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-25 14:03:28 +0200 |
commit | 94e98c674a4ff67dff78a2871d33f79ce74e6a77 (patch) | |
tree | 9141e6bd0d29d08dde1e1618f4d0b94ee21c1079 /include/vcl | |
parent | 1f86864e97bea96fdc608f8c8b93024ad4684d51 (diff) |
-Werror=type-limits
comparison is always true due to limited range of data type
Change-Id: If4bcf1f3123cbbd9261e48d2c786a610fc7c0cbc
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/bitmap.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 23587e5ff89a..c49b4f0e0048 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -166,7 +166,9 @@ public: BmpFilterParam( sal_uInt16 nSepiaPercent, sal_uLong nProgressStart = 0, sal_uLong nProgressEnd = 0 ) : meFilter( BMP_FILTER_SEPIA ), mnProgressStart( nProgressStart ), mnProgressEnd( nProgressEnd ), mnSepiaPercent( nSepiaPercent ) - { assert(nSepiaPercent>=0 && nSepiaPercent<=100); } + { + assert(nSepiaPercent<=100); + } BmpFilterParam( const Size& rMosaicTileSize, sal_uLong nProgressStart = 0, sal_uLong nProgressEnd = 0 ) : meFilter( BMP_FILTER_MOSAIC ), mnProgressStart( nProgressStart ), mnProgressEnd( nProgressEnd ) |