diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 17:44:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 17:44:50 +0000 |
commit | 69d166a0277d21d63b97ffc965d82bb301d55502 (patch) | |
tree | 40698917ad9472e61f27b7faa775e404df7f6f73 /lotuswordpro/source | |
parent | 00bccc565d1bcd4bd620bb9b33b9f1d07fb5f13e (diff) |
more use of references to avoid crashing
Change-Id: I03748695efbe17d59aba09f88d5c6fcd174113c9
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 8efc821bca36..9db1307ed006 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -568,8 +568,8 @@ void LwpCellLayout::RegisterDefaultCell() */ void LwpCellLayout::RegisterStyle() { - LwpVirtualLayout * pParent = dynamic_cast<LwpVirtualLayout *>(GetParent().obj().get()); - if (!pParent || pParent->GetLayoutType() != LWP_ROW_LAYOUT) + rtl::Reference<LwpVirtualLayout> xParent(dynamic_cast<LwpVirtualLayout *>(GetParent().obj().get())); + if (!xParent.is() || xParent->GetLayoutType() != LWP_ROW_LAYOUT) { // default cell layout, we must register 4 styles for it RegisterDefaultCell(); |