svx/source/unodraw/unoshape.cxx | 4 +++- sw/source/writerfilter/dmapper/OLEHandler.cxx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-)
New commits: commit 0afee23ca1c1695b9c5cc717fbe6a92a90afa2cd Author: Mike Kaganski <[email protected]> AuthorDate: Sun Jun 8 09:58:31 2025 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sun Jun 8 12:35:35 2025 +0200 Downgrade a SAL_WARN to SAL_INFO This is a normal case; only selected ProgIds are handled by design. Others are used as is. Reduces noise like warn:writerfilter:25912:24788:sw/source/writerfilter/dmapper/OLEHandler.cxx:262: OLEHandler::getCLSID: unhandled m_sProgId: Acrobat.Document.DC Change-Id: I946e2281e5dae132429dfa839d1bda94d893063b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186255 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sw/source/writerfilter/dmapper/OLEHandler.cxx b/sw/source/writerfilter/dmapper/OLEHandler.cxx index ad1782d0963d..d48c26e3b1a6 100644 --- a/sw/source/writerfilter/dmapper/OLEHandler.cxx +++ b/sw/source/writerfilter/dmapper/OLEHandler.cxx @@ -259,7 +259,7 @@ OUString OLEHandler::getCLSID() const aRet = "078B7ABA-54FC-457F-8551-6147E776A997"; } else - SAL_WARN("writerfilter", "OLEHandler::getCLSID: unhandled m_sProgId: " << m_sProgId); + SAL_INFO("writerfilter", "OLEHandler::getCLSID: unhandled m_sProgId: " << m_sProgId); return aRet; } commit fc504b2c81d9fa920706f4be880594194ab6cd2c Author: Mike Kaganski <[email protected]> AuthorDate: Sun Jun 8 09:56:53 2025 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sun Jun 8 12:35:25 2025 +0200 Reduce some SAL_WARN noise Seen this while loading a document: warn:svx:25912:24788:svx/source/unodraw/unoshape.cxx:1868: SvxShape::GetAnyForItem() Return value has wrong Type, com.sun.star.awt.Gradient != com.sun.star.awt.Gradient2 Change-Id: I408db273244cec5412132ed7e2830ceffab8dd28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186254 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 6ef52ffff75d..fa378d5d7883 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -1865,7 +1865,9 @@ uno::Any SvxShape::GetAnyForItem( SfxItemSet const & aSet, const SfxItemProperty } else { - SAL_WARN("svx", "SvxShape::GetAnyForItem() Return value has wrong Type, " << pMap->aType << " != " << aAny.getValueType()); + SAL_WARN_IF(!pMap->aType.isAssignableFrom(aAny.getValueType()), "svx", + "SvxShape::GetAnyForItem() Return value has wrong Type, " + << pMap->aType << " != " << aAny.getValueType()); } }
