[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Mon Jul 20 06:41:23 PDT 2015
sw/source/core/unocore/unostyle.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 06f65a10aec23f4442bd42d1d117d0e8d648c52a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Jul 20 14:39:59 2015 +0100
WaE: maybe-uninitialized
Change-Id: Idbe9f52b0c4b6eeb2fb7b5d934727bd74e96e6d3
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index b5bbfed..e609a6a 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1549,9 +1549,9 @@ void SwXStyle::ApplyDescriptorProperties()
PropertyEntryVector_t::const_iterator aIt = rPropertyVector.begin();
while(aIt != rPropertyVector.end())
{
- uno::Any* pAny;
+ uno::Any* pAny(0);
pPropImpl->GetProperty(aIt->sName, pAny);
- if(pAny)
+ if (pAny)
setPropertyValue(aIt->sName, *pAny);
++aIt;
}
More information about the Libreoffice-commits
mailing list