diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 15:33:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 15:33:46 +0000 |
commit | a1426bc54b11eb48fdefaf7e8dfd7996e5c7e4d5 (patch) | |
tree | e6279dcde35f0cfece0335d0e1e12de1189de9cc /lotuswordpro/source/filter/lwpstory.hxx | |
parent | Access2Base - OutputTo action more concise (diff) | |
download | core-a1426bc54b11eb48fdefaf7e8dfd7996e5c7e4d5.tar.gz core-a1426bc54b11eb48fdefaf7e8dfd7996e5c7e4d5.zip |
use more references to fix life cycles
Change-Id: I0c903533542608c1d7a3c97e2be7f2b7624b265b
Diffstat (limited to 'lotuswordpro/source/filter/lwpstory.hxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpstory.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpstory.hxx b/lotuswordpro/source/filter/lwpstory.hxx index 9266674aa280..619ea1354aa6 100644 --- a/lotuswordpro/source/filter/lwpstory.hxx +++ b/lotuswordpro/source/filter/lwpstory.hxx @@ -147,7 +147,7 @@ LwpMiddleLayout* LwpStory::GetTabLayout() { if(m_pTabLayout) return m_pTabLayout; - return static_cast<LwpMiddleLayout*>(GetLayout(nullptr)); + return dynamic_cast<LwpMiddleLayout*>(GetLayout(nullptr).get()); } void LwpStory::SetPMModified(bool bPMModified) { |