summaryrefslogtreecommitdiff
path: root/writerperfect/source/common/DirectoryStream.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:28:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:32:00 +0100
commit42e2262cdd05718a3286f813da6f53805846da02 (patch)
tree12caa143a9a41dabbe097377d9ef3aa7919c5100 /writerperfect/source/common/DirectoryStream.cxx
parent0a1c17a30cd98892e0e60b512200ac07ff1ab320 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ie4d4ce386f2810244fb97bf909870a839256971d
Diffstat (limited to 'writerperfect/source/common/DirectoryStream.cxx')
-rw-r--r--writerperfect/source/common/DirectoryStream.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/writerperfect/source/common/DirectoryStream.cxx b/writerperfect/source/common/DirectoryStream.cxx
index 064f51c76c11..0f57a66f1f42 100644
--- a/writerperfect/source/common/DirectoryStream.cxx
+++ b/writerperfect/source/common/DirectoryStream.cxx
@@ -106,7 +106,7 @@ DirectoryStream::Impl::Impl(const uno::Reference<ucb::XContent> &rxContent)
}
DirectoryStream::DirectoryStream(const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &xContent)
- : m_pImpl(isDirectory(xContent) ? new Impl(xContent) : 0)
+ : m_pImpl(isDirectory(xContent) ? new Impl(xContent) : nullptr)
{
}
@@ -120,9 +120,9 @@ DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Ref
try
{
if (!xContent.is())
- return 0;
+ return nullptr;
- DirectoryStream *pDir(0);
+ DirectoryStream *pDir(nullptr);
const uno::Reference<container::XChild> xChild(xContent, uno::UNO_QUERY);
if (xChild.is())
@@ -134,7 +134,7 @@ DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Ref
if (!pDir->isStructured())
{
delete pDir;
- pDir = 0;
+ pDir = nullptr;
}
}
}
@@ -143,7 +143,7 @@ DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Ref
}
catch (...)
{
- return 0;
+ return nullptr;
}
}
@@ -180,7 +180,7 @@ unsigned DirectoryStream::subStreamCount()
const char *DirectoryStream::subStreamName(unsigned /* id */)
{
// TODO: implement me
- return 0;
+ return nullptr;
}
bool DirectoryStream::existsSubStream(const char * /* name */)
@@ -192,26 +192,26 @@ bool DirectoryStream::existsSubStream(const char * /* name */)
librevenge::RVNGInputStream *DirectoryStream::getSubStreamByName(const char *const pName)
{
if (!m_pImpl)
- return 0;
+ return nullptr;
ucbhelper::Content aContent(m_pImpl->xContent, uno::Reference<ucb::XCommandEnvironment>(), comphelper::getProcessComponentContext());
const uno::Reference<io::XInputStream> xInputStream(findStream(aContent, rtl::OUString::createFromAscii(pName)));
if (xInputStream.is())
return new WPXSvInputStream(xInputStream);
- return 0;
+ return nullptr;
}
librevenge::RVNGInputStream *DirectoryStream::getSubStreamById(unsigned /* id */)
{
// TODO: implement me
- return 0;
+ return nullptr;
}
const unsigned char *DirectoryStream::read(unsigned long, unsigned long &nNumBytesRead)
{
nNumBytesRead = 0;
- return 0;
+ return nullptr;
}
int DirectoryStream::seek(long, librevenge::RVNG_SEEK_TYPE)