summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-16 13:48:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-16 15:33:24 +0000
commit27d76f145a9668999cc31c02b6f2712903e427db (patch)
tree80c3d85be98a118d0bc0aa028f76e636f4adb3ef /forms
parent0857ba551bdb1a9db450682eba07f59849a7eddb (diff)
tdf#153039 submitting XML from XForms document
regression from commit 5fd2f0b93bd7d38a277823bfc251c71da7a6f490 Author: Noel Grandin <noel.grandin@collabora.co.uk> 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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/submission.cxx2
1 files changed, 1 insertions, 1 deletions
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>& xModel )
{
mxModel = dynamic_cast<Model*>(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");
}