return an empty PropertySetInfo instead of assert

e.g. seen with APSO extension

Change-Id: Ia2eb636a7d27ca87062e7962eded06756ff4e333
Reviewed-on: https://gerrit.libreoffice.org/82457
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2019-11-11 16:50:43 +00:00
parent 2a79c050ec
commit 774de260e9

View File

@@ -30,6 +30,7 @@
#include "iahndl.hxx"
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/propertysetinfo.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -99,8 +100,7 @@ public:
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo() override
{
assert(false);
return nullptr;
return new comphelper::PropertySetInfo;
}
virtual void SAL_CALL setPropertyValue(const OUString& rPropertyName, const css::uno::Any& rValue) override