diff options
author | David Tardon <dtardon@redhat.com> | 2016-09-06 16:12:40 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-09-09 07:30:30 +0200 |
commit | 32ccb4ea863651c22bf33cc15012971d2a2d2810 (patch) | |
tree | 83d5cdf806d72e9185b9177a558e0d5ebba373ad /xmloff/source/text/XMLTextFrameHyperlinkContext.cxx | |
parent | a013b8505534896bc926e54116ef14e7879b0545 (diff) |
resolve the snafu with 2 separate refcounted bases
Change-Id: Ia275596d54ea27436f03d01297fb78b6ca09e8a6
Diffstat (limited to 'xmloff/source/text/XMLTextFrameHyperlinkContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextFrameHyperlinkContext.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx index 6b5fcd24537f..469d1b58776b 100644 --- a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx +++ b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx @@ -134,9 +134,9 @@ SvXMLImportContext *XMLTextFrameHyperlinkContext::CreateChildContext( TextContentAnchorType XMLTextFrameHyperlinkContext::GetAnchorType() const { - if( xFrameContext.Is() ) + if( xFrameContext.is() ) { - SvXMLImportContext *pContext = &xFrameContext; + SvXMLImportContext *pContext = xFrameContext.get(); return dynamic_cast<XMLTextFrameContext&>(*pContext).GetAnchorType(); } else @@ -147,9 +147,9 @@ TextContentAnchorType XMLTextFrameHyperlinkContext::GetAnchorType() const Reference < XTextContent > XMLTextFrameHyperlinkContext::GetTextContent() const { Reference <XTextContent > xTxt; - if( xFrameContext.Is() ) + if( xFrameContext.is() ) { - SvXMLImportContext *pContext = &xFrameContext; + SvXMLImportContext *pContext = xFrameContext.get(); xTxt = dynamic_cast<XMLTextFrameContext&>(*pContext).GetTextContent(); } @@ -160,9 +160,9 @@ Reference < XTextContent > XMLTextFrameHyperlinkContext::GetTextContent() const Reference < drawing::XShape > XMLTextFrameHyperlinkContext::GetShape() const { Reference < drawing::XShape > xShape; - if( xFrameContext.Is() ) + if( xFrameContext.is() ) { - SvXMLImportContext *pContext = &xFrameContext; + SvXMLImportContext *pContext = xFrameContext.get(); xShape = dynamic_cast<XMLTextFrameContext&>(*pContext).GetShape(); } |