summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-08 21:27:29 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-09 08:48:39 +0200
commit6a9efc627bd6e24bb56e6cd1e70708eee5af451d (patch)
tree50aced899c36c9979dfac7c88153705b1c07dd46 /sw/source
parentce1902d3964414f5abf5a07ec43c19641c8752f0 (diff)
Declare and initialize variable only when really needed (sw/unocrsrhelper)
Change-Id: If2dafc18b404f39d42df25c5f923eba348eac907 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123293 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index 6b3db84c0e35..5abffe37e91c 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -1336,7 +1336,6 @@ void makeRedline( SwPaM const & rPaM,
for (size_t i = 0; i < aEntries.size(); ++i)
{
- SfxItemPropertyMapEntry const*const pEntry = aEntries[i];
const uno::Any &rValue = aValues[i];
if (i == nNumId)
{
@@ -1354,6 +1353,7 @@ void makeRedline( SwPaM const & rPaM,
}
else
{
+ SfxItemPropertyMapEntry const*const pEntry = aEntries[i];
rPropSet.setPropertyValue(*pEntry, rValue, aItemSet);
if (i == nStyleId)
rValue >>= sParaStyleName;