Kaydet (Commit) c338638e authored tarafından Jens Carl's avatar Jens Carl Kaydeden (comit) Stephan Bergmann

tdf#43157 Clean up OSL_VERIFY (replace with SAL_WARN)

Replace OSL_VERIFY with if-statement and SAL_WARN.

Change-Id: Ibeef67f21dc9e18d3bc614cb838a6188bb58fff2
Reviewed-on: https://gerrit.libreoffice.org/72025
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst ea5f1ec4
......@@ -18,6 +18,7 @@
*/
#include <toolkit/helper/vclunohelper.hxx>
#include <sal/log.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include "MasterDetailLinkDialog.hxx"
......@@ -112,27 +113,32 @@ namespace pcr
{
if (aProperty.Name == "Detail")
{
OSL_VERIFY( aProperty.Value >>= m_xDetail );
if ( ! (aProperty.Value >>= m_xDetail) )
SAL_WARN("extensions.propctrlr", "implInitialize: unable to get property Detail");
return;
}
else if (aProperty.Name == "Master")
{
OSL_VERIFY( aProperty.Value >>= m_xMaster );
if ( ! (aProperty.Value >>= m_xMaster) )
SAL_WARN("extensions.propctrlr", "implInitialize: unable to get property Master");
return;
}
else if (aProperty.Name == "Explanation")
{
OSL_VERIFY( aProperty.Value >>= m_sExplanation );
if ( ! (aProperty.Value >>= m_sExplanation) )
SAL_WARN("extensions.propctrlr", "implInitialize: unable to get property Explanation");
return;
}
else if (aProperty.Name == "DetailLabel")
{
OSL_VERIFY( aProperty.Value >>= m_sDetailLabel );
if ( ! (aProperty.Value >>= m_sDetailLabel) )
SAL_WARN("extensions.propctrlr", "implInitialize: unable to get property DetailLabel");
return;
}
else if (aProperty.Name == "MasterLabel")
{
OSL_VERIFY( aProperty.Value >>= m_sMasterLabel );
if ( ! (aProperty.Value >>= m_sMasterLabel) )
SAL_WARN("extensions.propctrlr", "implInitialize: unable to get property MasterLabel");
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment