summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-27 09:22:13 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-28 09:31:16 +0000
commit43b4903db3e925c652e25c34362490f8adc9c5ec (patch)
treeaf12777b72d42280467e8cc19b914b2c7f4f3816 /svtools
parent7d6308dad9f4a079d57719a6e3a9c4cebb47d051 (diff)
teach stylepolice plugin about ref-counted-pointer naming
Change-Id: I6e91d22fc1826038c05ddb6fc065563c6a250752 Reviewed-on: https://gerrit.libreoffice.org/24459 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/embedhlp.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index 00b29182ae53..9c6d5d33b414 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -86,33 +86,33 @@ public:
EmbedEventListener_Impl* EmbedEventListener_Impl::Create( EmbeddedObjectRef* p )
{
- EmbedEventListener_Impl* xRet = new EmbedEventListener_Impl( p );
- xRet->acquire();
+ EmbedEventListener_Impl* pRet = new EmbedEventListener_Impl( p );
+ pRet->acquire();
if ( p->GetObject().is() )
{
- p->GetObject()->addStateChangeListener( xRet );
+ p->GetObject()->addStateChangeListener( pRet );
uno::Reference < util::XCloseable > xClose( p->GetObject(), uno::UNO_QUERY );
DBG_ASSERT( xClose.is(), "Object does not support XCloseable!" );
if ( xClose.is() )
- xClose->addCloseListener( xRet );
+ xClose->addCloseListener( pRet );
uno::Reference < document::XEventBroadcaster > xBrd( p->GetObject(), uno::UNO_QUERY );
if ( xBrd.is() )
- xBrd->addEventListener( xRet );
+ xBrd->addEventListener( pRet );
- xRet->nState = p->GetObject()->getCurrentState();
- if ( xRet->nState == embed::EmbedStates::RUNNING )
+ pRet->nState = p->GetObject()->getCurrentState();
+ if ( pRet->nState == embed::EmbedStates::RUNNING )
{
uno::Reference < util::XModifiable > xMod( p->GetObject()->getComponent(), uno::UNO_QUERY );
if ( xMod.is() )
// listen for changes in running state (update replacements in case of changes)
- xMod->addModifyListener( xRet );
+ xMod->addModifyListener( pRet );
}
}
- return xRet;
+ return pRet;
}
void SAL_CALL EmbedEventListener_Impl::changingState( const lang::EventObject&,