include/sal/log-areas.dox           |    1 +
 sw/source/uibase/shells/textsh1.cxx |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 2b9e6cfc8fb63eb621c397a6c53e75ee60a0c2fb
Author:     Caolán McNamara <[email protected]>
AuthorDate: Wed Oct 2 08:37:28 2024 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Oct 18 15:12:34 2024 +0200

    Log using LOK_WARN instead of std::cerr
    
    Change-Id: I3a3cabd90154cb7293949d6a21f599417c364b9b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174370
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Attila Szűcs <[email protected]>
    (cherry picked from commit 4baad2222e36fe2a71b2030b1a1292310821e104)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175123
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index a079f64589a7..d0b89aff5eef 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 971ddb4183fd..aa2219dc2fb3 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -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 << "
";
+    LOK_WARN("sw.transform",  sWarning);
 }
 
 bool lcl_ChangeChartColumnCount(const uno::Reference<chart2::XChartDocument>& 
xChartDoc, sal_Int32 nId,

Reply via email to