summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpstory.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-13 15:33:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-13 15:33:46 +0000
commita1426bc54b11eb48fdefaf7e8dfd7996e5c7e4d5 (patch)
treee6279dcde35f0cfece0335d0e1e12de1189de9cc /lotuswordpro/source/filter/lwpstory.hxx
parentAccess2Base - OutputTo action more concise (diff)
downloadcore-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.hxx2
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)
{