[Libreoffice-commits] core.git: vcl/qa
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 8 21:32:45 UTC 2019
vcl/qa/cppunit/widgetdraw/WidgetDefinitionReaderTest.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4cd4063f9cf531d1e948f27fcfd2eaed3d4a1a2d
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed May 8 17:08:35 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed May 8 23:31:42 2019 +0200
Fix test
...after 7764439f85f23efb4510b41e795abd1e4c9089e9 "WidgetDefinition: add
'action' state for the PushButton" introduced code that downcasts that
suspicious ImplControlValue to a PushButtonValue
Change-Id: I3ed24cc4a862d53ad5b6e95b4707bab7947ce7ba
Reviewed-on: https://gerrit.libreoffice.org/71998
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
Tested-by: Jenkins
diff --git a/vcl/qa/cppunit/widgetdraw/WidgetDefinitionReaderTest.cxx b/vcl/qa/cppunit/widgetdraw/WidgetDefinitionReaderTest.cxx
index 843f449b7901..63eecaeeaf1b 100644
--- a/vcl/qa/cppunit/widgetdraw/WidgetDefinitionReaderTest.cxx
+++ b/vcl/qa/cppunit/widgetdraw/WidgetDefinitionReaderTest.cxx
@@ -58,7 +58,7 @@ void WidgetDefinitionReaderTest::testRead()
std::vector<std::shared_ptr<vcl::WidgetDefinitionState>> aStates
= aDefinition.getDefinition(ControlType::Pushbutton, ControlPart::Entire)
->getStates(ControlType::Pushbutton, ControlPart::Entire, eState,
- ImplControlValue());
+ PushButtonValue());
CPPUNIT_ASSERT_EQUAL(size_t(2), aStates.size());
More information about the Libreoffice-commits
mailing list