[Libreoffice-commits] core.git: include/sal sw/source

Michael Stahl mstahl at redhat.com
Mon Apr 3 19:11:42 UTC 2017


 include/sal/log-areas.dox          |    1 +
 sw/source/core/layout/laycache.cxx |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 282b3e8c4d45aacae57e3542b872cdbfebcc7195
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Apr 3 21:06:59 2017 +0200

    sw: [loplugin:sallogareas]
    
    Change-Id: I94c552e4b2ae95f57b0c667f6072664eab570042

diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index d5b9934ea0a9..b28bfe61132e 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -474,6 +474,7 @@ certain functionality.
 @li @c sw
 @li @c sw.a11y - accessibility
 @li @c sw.core - Writer core
+ at li @c sw.layout - Writer core view: document layout
 @li @c sw.createcopy
 @li @c sw.doc
 @li @c sw.docappend
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index 5903b7d4a4d0..4d0e4c24bd03 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -468,7 +468,7 @@ bool sanityCheckLayoutCache(SwLayCacheImpl const& rCache,
         auto const nBreakIndex(rCache.GetBreakIndex(nIndex));
         if (nBreakIndex < nNodeIndex || nMaxIndex <= nBreakIndex)
         {
-            SAL_WARN("sw.core",
+            SAL_WARN("sw.layout",
                 "invalid node index in layout-cache: " << nBreakIndex);
             return false;
         }
@@ -478,7 +478,7 @@ bool sanityCheckLayoutCache(SwLayCacheImpl const& rCache,
             case SW_LAYCACHE_IO_REC_PARA:
                 if (!rNodes[nBreakIndex + nStartOfContent]->IsTextNode())
                 {
-                    SAL_WARN("sw.core",
+                    SAL_WARN("sw.layout",
                         "invalid node of type 'P' in layout-cache");
                     return false;
                 }
@@ -486,7 +486,7 @@ bool sanityCheckLayoutCache(SwLayCacheImpl const& rCache,
             case SW_LAYCACHE_IO_REC_TABLE:
                 if (!rNodes[nBreakIndex + nStartOfContent]->IsTableNode())
                 {
-                    SAL_WARN("sw.core",
+                    SAL_WARN("sw.layout",
                         "invalid node of type 'T' in layout-cache");
                     return false;
                 }


More information about the Libreoffice-commits mailing list