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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Oct 12 07:48:15 UTC 2020


 sw/source/filter/ww8/ww8scan.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f7e5b8e289645f2561844c0018bc4283b0e63b21
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 10 21:22:04 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Oct 12 09:47:29 2020 +0200

    IsSizeLegalCheckSize is a silly name
    
    Change-Id: If39302042d3e53798aaa8564fddc8ddd6e539712
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104179
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 65a5818abb48..09b43d02f52f 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -5171,7 +5171,7 @@ void WW8PLCFMan::RestoreAllPLCFx( const WW8PLCFxSaveAll& rSave )
 
 namespace
 {
-    bool IsSizeLegalCheckSize(long nSprmLen, sal_Int32 nSprmsLen)
+    bool IsSizeLegal(long nSprmLen, sal_Int32 nSprmsLen)
     {
         if (nSprmLen > nSprmsLen)
         {
@@ -5237,7 +5237,7 @@ void WW8PLCFMan::GetSprmStart( short nIdx, WW8PLCFManResult* pRes ) const
     {
         // Length of actual sprm
         pRes->nMemLen = maSprmParser.GetSprmSize(pRes->nSprmId, pRes->pMemPos, p->nSprmsLen);
-        if (!IsSizeLegalCheckSize(pRes->nMemLen, p->nSprmsLen) || !IsSprmLegalForCategory(pRes->nSprmId, nIdx))
+        if (!IsSizeLegal(pRes->nMemLen, p->nSprmsLen) || !IsSprmLegalForCategory(pRes->nSprmId, nIdx))
         {
             pRes->nSprmId = 0;
         }


More information about the Libreoffice-commits mailing list