From 27d76f145a9668999cc31c02b6f2712903e427db Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Jan 2023 13:48:53 +0200 Subject: [PATCH] tdf#153039 submitting XML from XForms document regression from commit 5fd2f0b93bd7d38a277823bfc251c71da7a6f490 Author: Noel Grandin Date: Thu Jan 12 09:19:03 2023 +0200 use concrete class in Submission Change-Id: I99bc069b5243e994da71287960e29be6ab3338ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145567 Tested-by: Jenkins Reviewed-by: Noel Grandin --- forms/source/xforms/submission.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index 8260095102b3..7a27305760e3 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -86,7 +86,7 @@ Submission::~Submission() noexcept void Submission::setModel( const Reference& xModel ) { mxModel = dynamic_cast(xModel.get()); - assert((!mxModel || !xModel) && "we only support an instance of Model here"); + assert(bool(mxModel)==bool(xModel) && "we only support an instance of Model here"); }