summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unostyle.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-20 14:39:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-20 14:40:40 +0100
commit06f65a10aec23f4442bd42d1d117d0e8d648c52a (patch)
tree718e3d3c8736bd94deaa67977ff47f787eff9ea7 /sw/source/core/unocore/unostyle.cxx
parent8a01693c79a24006cbe7d8642b97408eb23a1bd9 (diff)
WaE: maybe-uninitialized
Change-Id: Idbe9f52b0c4b6eeb2fb7b5d934727bd74e96e6d3
Diffstat (limited to 'sw/source/core/unocore/unostyle.cxx')
-rw-r--r--sw/source/core/unocore/unostyle.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index b5bbfeda70c1..e609a6ace94f 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;
}