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"); }