diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-05-01 23:07:32 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-07 14:05:16 +0000 |
commit | 6a26624d8ba9d37481e75f5c952dff9c6dd86fb6 (patch) | |
tree | b4dba17480c2ec71068c0f5a8ebdaddca23a7f82 /vcl/qa | |
parent | 5a7c1bc635c7e0377bb743d91b0cf385397b7337 (diff) |
vcl: simplify code by using std::any_of/std::none_of
Change-Id: I37c4fd80780738b823c7928f22deaff0ea1c6bff
Reviewed-on: https://gerrit.libreoffice.org/15585
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/canvasbitmaptest.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/canvasbitmaptest.cxx b/vcl/qa/cppunit/canvasbitmaptest.cxx index a69460ba5a96..07f2a51c85ef 100644 --- a/vcl/qa/cppunit/canvasbitmaptest.cxx +++ b/vcl/qa/cppunit/canvasbitmaptest.cxx @@ -41,6 +41,7 @@ #include "vcl/bitmapex.hxx" #include "canvasbitmap.hxx" +#include <algorithm> using namespace ::com::sun::star; using namespace vcl::unotools; @@ -152,7 +153,7 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp, aRes.first == pRGBEnd); CPPUNIT_ASSERT_MESSAGE( "rgb colors are not within [0,1] range", - std::find_if(pRGBStart,pRGBEnd,&rangeCheck) == pRGBEnd); + std::none_of(pRGBStart,pRGBEnd,&rangeCheck)); CPPUNIT_ASSERT_MESSAGE( "First pixel is not white", pRGBStart[0].Red == 1.0 && pRGBStart[0].Green == 1.0 && pRGBStart[0].Blue == 1.0); |