diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 21:22:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-12 09:47:29 +0200 |
commit | f7e5b8e289645f2561844c0018bc4283b0e63b21 (patch) | |
tree | a1a8a686f0b191c3c0c6c07c13acd32fe495e017 /sw/source | |
parent | 4e56a0a4b60f293cfddda67af68352de36ccc1ef (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>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 4 |
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; } |