[Libreoffice-commits] core.git: sfx2/source

Stephan Bergmann sbergman at redhat.com
Tue Mar 25 02:00:40 PDT 2014


 sfx2/source/control/dispatch.cxx |   16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

New commits:
commit 93d7c753051664bc3f03d41fe634c1d996a07a80
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Mar 25 09:59:58 2014 +0100

    Adapt to sal/log.hxx
    
    Change-Id: I96786bcab1205d212926af6c7c6afbf88bfe1453

diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index d74bd22..1f8da2e 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -2099,7 +2099,7 @@ bool SfxDispatcher::_FillState
         pSh->CallState( pFunc, rState );
 #ifdef DBG_UTIL
         // To examine the conformity of IDL (SlotMap) and current Items
-        if ( DbgIsAssertWarning() && rState.Count() )
+        if ( rState.Count() )
         {
             SfxInterface *pIF = pSh->GetInterface();
             SfxItemIter aIter( rState );
@@ -2110,15 +2110,11 @@ bool SfxDispatcher::_FillState
                 if ( !IsInvalidItem(pItem) && !pItem->ISA(SfxVoidItem) )
                 {
                     sal_uInt16 nSlotId = rState.GetPool()->GetSlotId(pItem->Which());
-                    if ( !pItem->IsA(pIF->GetSlot(nSlotId)->GetType()->Type()) )
-                    {
-                        OStringBuffer aMsg("item-type unequal to IDL (=> no BASIC)");
-                        aMsg.append("\nwith SID: ");
-                        aMsg.append(static_cast<sal_Int32>(nSlotId));
-                        aMsg.append("\nin ");
-                        aMsg.append(pIF->GetClassName());
-                        DbgOut(aMsg.getStr(), DBG_OUT_ERROR, __FILE__, __LINE__);
-                    }
+                    SAL_WARN_IF(
+                        !pItem->IsA(pIF->GetSlot(nSlotId)->GetType()->Type()),
+                        "sfx.control",
+                        "item-type unequal to IDL (=> no BASIC) with SID: "
+                            << nSlotId << " in " << pIF->GetClassName());
                 }
             }
         }


More information about the Libreoffice-commits mailing list