Log using LOK_WARN instead of std::cerr

Change-Id: I3a3cabd90154cb7293949d6a21f599417c364b9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174370
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Attila Szűcs <attila.szucs@collabora.com>
(cherry picked from commit 4baad2222e36fe2a71b2030b1a1292310821e104)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175123
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara 2024-10-02 08:37:28 +01:00
parent 59f8370e62
commit 2b9e6cfc8f
2 changed files with 3 additions and 1 deletions

View file

@ -558,6 +558,7 @@ certain functionality.
@li @c sw.qa
@li @c sw.rtf - .rtf export filter
@li @c sw.tiled
@li @c sw.transform - Transform documents API
@li @c sw.ui
@li @c sw.uno - Writer UNO interfaces
@li @c sw.vba - Writer VBA

View file

@ -42,6 +42,7 @@
#include <sfx2/viewfrm.hxx>
#include <vcl/unohelp2.hxx>
#include <vcl/weld.hxx>
#include <sfx2/lokhelper.hxx>
#include <sfx2/request.hxx>
#include <svl/eitem.hxx>
#include <editeng/lrspitem.hxx>
@ -815,7 +816,7 @@ void DeleteFields(SfxRequest& rReq, SwWrtShell& rWrtSh)
void lcl_LogWarning(std::string sWarning)
{
std::cerr << "Warning: " << sWarning << "\n";
LOK_WARN("sw.transform", sWarning);
}
bool lcl_ChangeChartColumnCount(const uno::Reference<chart2::XChartDocument>& xChartDoc, sal_Int32 nId,