diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-29 15:50:02 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-04-30 04:57:21 +0200 |
commit | 7334034ae93b49fc93b5859a3c047a319d138282 (patch) | |
tree | 6216d895de7ede63bd946a0e75913a3b07e4c2b6 /svx/qa | |
parent | c0ff8a24365456383900ed7958c8fb9ea68043e9 (diff) |
drop Graphic::operator bool
which tends to interact in very weird ways with other code, for example
it makes Graphic appear to have an operator<
Change-Id: I335fe8f3644b710bc61291e625cbca7334a37716
Reviewed-on: https://gerrit.libreoffice.org/71532
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/qa')
-rw-r--r-- | svx/qa/unit/XTableImportExportTest.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/qa/unit/XTableImportExportTest.cxx b/svx/qa/unit/XTableImportExportTest.cxx index cc86393577e3..bbbc67a314b2 100644 --- a/svx/qa/unit/XTableImportExportTest.cxx +++ b/svx/qa/unit/XTableImportExportTest.cxx @@ -76,7 +76,7 @@ CPPUNIT_TEST_FIXTURE(XTableImportExportTest, testImportExport) uno::Reference<graphic::XGraphic> xGraphic(xBitmap, uno::UNO_QUERY); CPPUNIT_ASSERT(xGraphic.is()); Graphic aGraphic(xGraphic); - CPPUNIT_ASSERT(aGraphic); + CPPUNIT_ASSERT(!aGraphic.IsNone()); Bitmap aBitmap = aGraphic.GetBitmapEx().GetBitmap(); CPPUNIT_ASSERT_EQUAL(aChecksum, aBitmap.GetChecksum()); } |