lotuswordpro/source/filter/lwpparaproperty.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a23f7b3c14ad0e88264aca197a979aefcc9c0670
Author: Caolán McNamara <caol...@redhat.com>
Date:   Sun Dec 13 16:34:46 2015 +0000

    use more references to fix life cycles
    
    Change-Id: I83928638a390f434c431487b1cb13633f24de9ec

diff --git a/lotuswordpro/source/filter/lwpparaproperty.cxx 
b/lotuswordpro/source/filter/lwpparaproperty.cxx
index 66730e2..2ddd714 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;
 
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to