diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-02 08:37:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-03 10:48:30 +0200 |
commit | 4baad2222e36fe2a71b2030b1a1292310821e104 (patch) | |
tree | b35fe2093c3306bf4caeceb419fd206462230a58 | |
parent | 1cb191e6fc1c934de1d6405f8f05698418ca1dc5 (diff) |
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>
-rw-r--r-- | include/sal/log-areas.dox | 1 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox index a2240a89a803..2ee98e7985b7 100644 --- a/include/sal/log-areas.dox +++ b/include/sal/log-areas.dox @@ -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 diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 1b86d294021f..870b14a3a8af 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -41,6 +41,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> @@ -809,7 +810,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, |