Kaydet (Commit) b4af1664 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:nullptr (automatic rewrite)

Change-Id: I3003db8a411740db48c2e0c6ecd81a7fd9209e6c
üst 05b49021
......@@ -90,7 +90,7 @@ UCBHELPER_DLLPUBLIC void cancelCommandExecution( const css::ucb::IOErrorCode eEr
const css::uno::Sequence< css::uno::Any > & rArgs,
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv,
const OUString & rMessage = OUString(),
const css::uno::Reference< css::ucb::XCommandProcessor > & xContext = 0 )
const css::uno::Reference< css::ucb::XCommandProcessor > & xContext = nullptr )
throw( css::uno::Exception );
}
......
......@@ -653,7 +653,7 @@ public:
const OUString & rMimeType = OUString( ),
bool bMajorVersion = false,
const OUString & rCommentVersion = OUString( ),
OUString* pResultURL = NULL,
OUString* pResultURL = nullptr,
const OUString & rDocumentId = OUString( ) )
throw( css::ucb::CommandAbortedException,
css::uno::RuntimeException,
......
......@@ -49,7 +49,7 @@ namespace ucbhelper
* on which the inputstream acts.
*/
FdInputStream(oslFileHandle tmpfl = 0);
FdInputStream(oslFileHandle tmpfl = nullptr);
virtual ~FdInputStream();
......
......@@ -52,7 +52,7 @@ css::uno::Sequence< css::uno::Type > SAL_CALL \
Class::getTypes() \
throw( css::uno::RuntimeException, std::exception ) \
{ \
static cppu::OTypeCollection* pCollection = NULL; \
static cppu::OTypeCollection* pCollection = nullptr; \
if ( !pCollection ) \
{ \
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() ); \
......
......@@ -428,7 +428,7 @@ class ResultSetDataSupplier : public salhelper::SimpleReferenceObject
ResultSet* m_pResultSet;
public:
ResultSetDataSupplier() : m_pResultSet( 0 ) {}
ResultSetDataSupplier() : m_pResultSet( nullptr ) {}
/**
* This method returns the resultset this supplier belongs to.
......
......@@ -1042,7 +1042,7 @@ bool Content::transferContent( const Content& rSourceContent,
}
Any aRet = pBroker->execute( aCommand, 0, m_xImpl->getEnvironment() );
if ( pResultURL != NULL )
if ( pResultURL != nullptr )
aRet >>= *pResultURL;
return true;
}
......@@ -1151,7 +1151,7 @@ void Content_Impl::reinit( const Reference< XContent >& xContent )
{
osl::MutexGuard aGuard( m_aMutex );
m_xCommandProcessor = 0;
m_xCommandProcessor = nullptr;
// #92581# - Don't reset m_aURL!!!
......@@ -1183,7 +1183,7 @@ void Content_Impl::reinit( const Reference< XContent >& xContent )
// content object again if demanded ( --> Content_Impl::getContent() )
getURL();
m_xContent = 0;
m_xContent = nullptr;
}
}
......@@ -1216,8 +1216,8 @@ void Content_Impl::disposing( const EventObject& Source )
xContent = m_xContent;
m_aURL.clear();
m_xCommandProcessor = 0;
m_xContent = 0;
m_xCommandProcessor = nullptr;
m_xContent = nullptr;
}
if ( xContent.is() )
......
......@@ -98,11 +98,11 @@ struct ContentImplHelper_Impl
PropertyChangeListeners* m_pPropertyChangeListeners;
ContentImplHelper_Impl()
: m_pDisposeEventListeners( 0 ),
m_pContentEventListeners( 0 ),
m_pPropSetChangeListeners( 0 ),
m_pCommandChangeListeners( 0 ),
m_pPropertyChangeListeners( 0 ) {}
: m_pDisposeEventListeners( nullptr ),
m_pContentEventListeners( nullptr ),
m_pPropSetChangeListeners( nullptr ),
m_pCommandChangeListeners( nullptr ),
m_pPropertyChangeListeners( nullptr ) {}
~ContentImplHelper_Impl()
{
......@@ -554,7 +554,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const OUString& Name )
throw;
}
xContainer = 0;
xContainer = nullptr;
// Success!
......@@ -566,7 +566,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const OUString& Name )
if ( xReg.is() )
{
OUString aKey( xSet->getKey() );
xSet = 0;
xSet = nullptr;
xReg->removePropertySet( aKey );
}
}
......@@ -722,7 +722,7 @@ void ContentImplHelper::notifyPropertiesChange(
cppu::OInterfaceIteratorHelper aIter( *pPropsContainer );
while ( aIter.hasMoreElements() )
{
PropertyEventSequence* p = NULL;
PropertyEventSequence* p = nullptr;
beans::XPropertiesChangeListener* pListener =
static_cast< beans::XPropertiesChangeListener * >(
......
......@@ -146,7 +146,7 @@ Sequence< com::sun::star::uno::Type > SAL_CALL
ContentIdentifier::getTypes()
throw( RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = NULL;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......
......@@ -46,7 +46,7 @@ PropertySetInfo::PropertySetInfo(
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv,
ContentImplHelper* pContent )
: m_xEnv( rxEnv ),
m_pProps( 0 ),
m_pProps( nullptr ),
m_pContent( pContent )
{
}
......@@ -191,7 +191,7 @@ void PropertySetInfo::reset()
{
osl::MutexGuard aGuard( m_aMutex );
delete m_pProps;
m_pProps = 0;
m_pProps = nullptr;
}
......@@ -229,7 +229,7 @@ CommandProcessorInfo::CommandProcessorInfo(
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv,
ContentImplHelper* pContent )
: m_xEnv( rxEnv ),
m_pCommands( 0 ),
m_pCommands( nullptr ),
m_pContent( pContent )
{
}
......@@ -377,7 +377,7 @@ void CommandProcessorInfo::reset()
{
osl::MutexGuard aGuard( m_aMutex );
delete m_pCommands;
m_pCommands = 0;
m_pCommands = nullptr;
}
......
......@@ -35,7 +35,7 @@ namespace ucbhelper
, m_nLength( 0 )
{
if ( !m_tmpfl )
osl_createTempFile( NULL, &m_tmpfl, NULL );
osl_createTempFile( nullptr, &m_tmpfl, nullptr );
OSL_ENSURE( m_tmpfl, "input stream without tempfile!" );
if ( osl_setFilePos( m_tmpfl, osl_Pos_End, 0 ) == osl_File_E_None )
......@@ -50,7 +50,7 @@ namespace ucbhelper
FdInputStream::~FdInputStream()
{
if ( 0 != m_tmpfl)
if ( nullptr != m_tmpfl)
osl_closeFile(m_tmpfl);
}
......@@ -127,7 +127,7 @@ namespace ucbhelper
{
osl::MutexGuard aGuard(m_aMutex);
if(m_tmpfl)
osl_closeFile(m_tmpfl),m_tmpfl = 0;
osl_closeFile(m_tmpfl),m_tmpfl = nullptr;
}
......
......@@ -158,7 +158,7 @@ uno::Sequence< sal_Int8 > SAL_CALL InteractionRequest::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionRequest::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......@@ -293,7 +293,7 @@ uno::Sequence< sal_Int8 > SAL_CALL InteractionAbort::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionAbort::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......@@ -383,7 +383,7 @@ uno::Sequence< sal_Int8 > SAL_CALL InteractionRetry::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionRetry::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......@@ -473,7 +473,7 @@ uno::Sequence< sal_Int8 > SAL_CALL InteractionApprove::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionApprove::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......@@ -563,7 +563,7 @@ uno::Sequence< sal_Int8 > SAL_CALL InteractionDisapprove::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionDisapprove::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......@@ -655,7 +655,7 @@ InteractionSupplyAuthentication::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionSupplyAuthentication::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......@@ -907,7 +907,7 @@ InteractionReplaceExistingData::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionReplaceExistingData::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......
......@@ -66,10 +66,10 @@ static const PropertyInfo aPropertyTable[] =
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY,
&sal_Int32_getCppuType
},
{ 0,
{ nullptr,
0,
0,
0
nullptr
}
};
......@@ -178,8 +178,8 @@ inline ResultSet_Impl::ResultSet_Impl(
m_xEnv( rxEnv ),
m_aProperties( rProperties ),
m_xDataSupplier( rDataSupplier ),
m_pDisposeEventListeners( 0 ),
m_pPropertyChangeListeners( 0 ),
m_pDisposeEventListeners( nullptr ),
m_pPropertyChangeListeners( nullptr ),
m_nPos( 0 ), // Position is one-based. Zero means: before first element.
m_bWasNull( false ),
m_bAfterLast( false )
......
......@@ -52,7 +52,7 @@ namespace ucbhelper {
ResultSetImplHelper::ResultSetImplHelper(
const uno::Reference< uno::XComponentContext >& rxContext,
const com::sun::star::ucb::OpenCommandArgument2& rCommand )
: m_pDisposeEventListeners( 0 ),
: m_pDisposeEventListeners( nullptr ),
m_bStatic( false ),
m_bInitDone( false ),
m_aCommand( rCommand ),
......@@ -272,7 +272,7 @@ void SAL_CALL ResultSetImplHelper::connectToCache(
if ( xStubFactory.is() )
{
xStubFactory->connectToCache(
this, xCache, m_aCommand.SortingInfo, 0 );
this, xCache, m_aCommand.SortingInfo, nullptr );
return;
}
}
......
......@@ -113,7 +113,7 @@ uno::Sequence< sal_Int8 > SAL_CALL InteractionSupplyName::getImplementationId()
uno::Sequence< uno::Type > SAL_CALL InteractionSupplyName::getTypes()
throw( uno::RuntimeException, std::exception )
{
static cppu::OTypeCollection* pCollection = 0;
static cppu::OTypeCollection* pCollection = nullptr;
if ( !pCollection )
{
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment