diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 16:34:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 16:34:46 +0000 |
commit | a23f7b3c14ad0e88264aca197a979aefcc9c0670 (patch) | |
tree | 5c49da6aec7e3f8f879fb5f47d28c18e92356e25 /lotuswordpro | |
parent | a258c3a6503b4fd76ad2b0f705fdd7f472f58c4b (diff) |
use more references to fix life cycles
Change-Id: I83928638a390f434c431487b1cb13633f24de9ec
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpparaproperty.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpparaproperty.cxx b/lotuswordpro/source/filter/lwpparaproperty.cxx index 66730e2e406a..2ddd71462f35 100644 --- a/lotuswordpro/source/filter/lwpparaproperty.cxx +++ b/lotuswordpro/source/filter/lwpparaproperty.cxx @@ -143,8 +143,8 @@ LwpParaAlignProperty::LwpParaAlignProperty(LwpObjectStream* pFile) LwpObjectID align; align.ReadIndexed(pFile); - LwpAlignmentPiece *pAlignmentPiece = dynamic_cast<LwpAlignmentPiece*>(align.obj(VO_ALIGNMENTPIECE).get()); - m_pAlignment = pAlignmentPiece ? dynamic_cast<LwpAlignmentOverride*>(pAlignmentPiece->GetOverride()) : nullptr; + rtl::Reference<LwpAlignmentPiece> xAlignmentPiece(dynamic_cast<LwpAlignmentPiece*>(align.obj(VO_ALIGNMENTPIECE).get())); + m_pAlignment = xAlignmentPiece.is() ? dynamic_cast<LwpAlignmentOverride*>(xAlignmentPiece->GetOverride()) : nullptr; } |