summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-20 11:57:48 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-21 12:33:45 +0100
commite7279e5bab5aece2f759c134e29fa1760bed157e (patch)
treee74db48ca09401afddb2de724f1c55e9d408b0c9 /svx
parent1bceacf3ade2417e4a038964b3369b18f2729c94 (diff)
svx: use SAL_WARN_IF
Change-Id: Ic638636aef8c42635cd166ab779564434d5daecf
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unoshap4.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx
index d4afc83caf4e..093d16418268 100644
--- a/svx/source/unodraw/unoshap4.cxx
+++ b/svx/source/unodraw/unoshap4.cxx
@@ -303,12 +303,8 @@ bool SvxOle2Shape::getPropertyValueImpl( const OUString& rName, const SfxItemPro
// usage. Removed it, former fallback is used now
if ( pProperty->nWID == OWN_ATTR_OLEMODEL || pProperty->nWID == OWN_ATTR_OLE_EMBEDDED_OBJECT )
{
-#if OSL_DEBUG_LEVEL > 0
const bool bSuccess(pObj->AddOwnLightClient());
- OSL_ENSURE( bSuccess, "An object without client is provided!" );
-#else
- pObj->AddOwnLightClient();
-#endif
+ SAL_WARN_IF(!bSuccess, "svx.svdraw", "An object without client is provided!");
}
if ( pProperty->nWID == OWN_ATTR_OLEMODEL )