From 43b4903db3e925c652e25c34362490f8adc9c5ec Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Apr 2016 09:22:13 +0200 Subject: teach stylepolice plugin about ref-counted-pointer naming Change-Id: I6e91d22fc1826038c05ddb6fc065563c6a250752 Reviewed-on: https://gerrit.libreoffice.org/24459 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/file/shell.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index a6bdcbd2d4b5..6dd405ad5d63 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -653,21 +653,21 @@ shell::open( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ) { - XInputStream_impl* xInputStream = new XInputStream_impl( aUnqPath, bLock ); // from filinpstr.hxx + XInputStream_impl* pInputStream = new XInputStream_impl( aUnqPath, bLock ); // from filinpstr.hxx - sal_Int32 ErrorCode = xInputStream->CtorSuccess(); + sal_Int32 ErrorCode = pInputStream->CtorSuccess(); if( ErrorCode != TASKHANDLER_NO_ERROR ) { installError( CommandId, ErrorCode, - xInputStream->getMinorError() ); + pInputStream->getMinorError() ); - delete xInputStream; - xInputStream = nullptr; + delete pInputStream; + pInputStream = nullptr; } - return uno::Reference< io::XInputStream >( xInputStream ); + return uno::Reference< io::XInputStream >( pInputStream ); } @@ -686,20 +686,20 @@ shell::open_rw( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ) { - XStream_impl* xStream = new XStream_impl( aUnqPath, bLock ); // from filstr.hxx + XStream_impl* pStream = new XStream_impl( aUnqPath, bLock ); // from filstr.hxx - sal_Int32 ErrorCode = xStream->CtorSuccess(); + sal_Int32 ErrorCode = pStream->CtorSuccess(); if( ErrorCode != TASKHANDLER_NO_ERROR ) { installError( CommandId, ErrorCode, - xStream->getMinorError() ); + pStream->getMinorError() ); - delete xStream; - xStream = nullptr; + delete pStream; + pStream = nullptr; } - return uno::Reference< io::XStream >( xStream ); + return uno::Reference< io::XStream >( pStream ); } -- cgit