diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:13:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:22 +0100 |
commit | 89c4edc13f203db1641c63e22774262bbe61f36f (patch) | |
tree | 0aa28439045c19140ff51cd6cf1593d8cf515d89 /dbaccess/source/ui/misc/TokenWriter.cxx | |
parent | b58d56c5109f4cf6cacfc8e9c424b179a65bf1f1 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I2bba104b1bff30910864e45b5b032533099742ff
Diffstat (limited to 'dbaccess/source/ui/misc/TokenWriter.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index c90f206c2149..ffbb1158b6a0 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -92,8 +92,8 @@ ODatabaseImportExport::ODatabaseImportExport(const svx::ODataAccessDescriptor& _ ,m_xContext(_rM) ,m_nCommandType(CommandType::TABLE) ,m_bNeedToReInitialize(false) - ,m_pReader(NULL) - ,m_pRowMarker(NULL) + ,m_pReader(nullptr) + ,m_pRowMarker(nullptr) ,m_bInInitialize(false) ,m_bCheckOnly(false) { @@ -116,14 +116,14 @@ ODatabaseImportExport::ODatabaseImportExport(const svx::ODataAccessDescriptor& _ ODatabaseImportExport::ODatabaseImportExport( const ::dbtools::SharedConnection& _rxConnection, const Reference< XNumberFormatter >& _rxNumberF, const Reference< XComponentContext >& _rM ) :m_bBookmarkSelection( false ) - ,m_pStream(NULL) + ,m_pStream(nullptr) ,m_xConnection(_rxConnection) ,m_xFormatter(_rxNumberF) ,m_xContext(_rM) ,m_nCommandType(css::sdb::CommandType::TABLE) ,m_bNeedToReInitialize(false) - ,m_pReader(NULL) - ,m_pRowMarker(NULL) + ,m_pReader(nullptr) + ,m_pRowMarker(nullptr) ,m_bInInitialize(false) ,m_bCheckOnly(false) { @@ -313,8 +313,8 @@ void ODatabaseImportExport::initialize() } catch(Exception& ) { - m_xRow = NULL; - m_xResultSetMetaData = NULL; + m_xRow = nullptr; + m_xResultSetMetaData = nullptr; ::comphelper::disposeComponent(m_xResultSet); throw; } @@ -613,7 +613,7 @@ bool ORTFImportExport::Read() m_pReader->enableCheckOnly(); eState = static_cast<ORTFReader*>(m_pReader)->CallParser(); m_pReader->release(); - m_pReader = NULL; + m_pReader = nullptr; } return eState != SVPAR_ERROR; @@ -685,7 +685,7 @@ bool OHTMLImportExport::Read() m_pReader->SetTableName(m_sDefaultTableName); eState = static_cast<OHTMLReader*>(m_pReader)->CallParser(); m_pReader->release(); - m_pReader = NULL; + m_pReader = nullptr; } return eState != SVPAR_ERROR; @@ -937,7 +937,7 @@ void OHTMLImportExport::WriteCell( sal_Int32 nFormat, sal_Int32 nWidthPixel, sal Reference< css::util::XNumberFormatsSupplier > xSupplier = m_xFormatter->getNumberFormatsSupplier(); SvNumberFormatsSupplierObj* pSupplierImpl = SvNumberFormatsSupplierObj::getImplementation( xSupplier ); - SvNumberFormatter* pFormatter = pSupplierImpl ? pSupplierImpl->GetNumberFormatter() : NULL; + SvNumberFormatter* pFormatter = pSupplierImpl ? pSupplierImpl->GetNumberFormatter() : nullptr; if(pFormatter) { double fVal = 0.0; |