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

Miklos Vajna vmiklos at collabora.co.uk
Mon Mar 31 07:24:30 PDT 2014


 sfx2/source/control/dispatch.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit dcc8c9173d76c3f31af6b1098d920c5491ed150e
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Mar 31 16:17:31 2014 +0200

    SAL_WARN -> SAL_INFO in SfxDispatcher::_FillState()
    
    These warnings were hidden so far, don't make them noise till one starts
    to actually fix them.
    
    Change-Id: I142726d54fbc20c1c5591a5b20d26356986ba4b8

diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 691166c..9ab086f 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -2101,9 +2101,8 @@ bool SfxDispatcher::_FillState
                 if ( !IsInvalidItem(pItem) && !pItem->ISA(SfxVoidItem) )
                 {
                     sal_uInt16 nSlotId = rState.GetPool()->GetSlotId(pItem->Which());
-                    SAL_WARN_IF(
-                        !pItem->IsA(pIF->GetSlot(nSlotId)->GetType()->Type()),
-                        "sfx.control",
+                    if (!pItem->IsA(pIF->GetSlot(nSlotId)->GetType()->Type()))
+                        SAL_INFO("sfx.control",
                         "item-type unequal to IDL (=> no BASIC) with SID: "
                             << nSlotId << " in " << pIF->GetClassName());
                 }


More information about the Libreoffice-commits mailing list