summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-10 21:22:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-12 09:47:29 +0200
commitf7e5b8e289645f2561844c0018bc4283b0e63b21 (patch)
treea1a8a686f0b191c3c0c6c07c13acd32fe495e017
parent4e56a0a4b60f293cfddda67af68352de36ccc1ef (diff)
IsSizeLegalCheckSize is a silly name
Change-Id: If39302042d3e53798aaa8564fddc8ddd6e539712 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104179 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}