summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/attr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/attr.cxx')
-rw-r--r--unoxml/source/dom/attr.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
index bf03d9ac5d87..d6ee2ef72b84 100644
--- a/unoxml/source/dom/attr.cxx
+++ b/unoxml/source/dom/attr.cxx
@@ -47,7 +47,7 @@ namespace DOM
xmlNsPtr CAttr::GetNamespace(xmlNodePtr const pNode)
{
if (!m_pNamespace.get()) {
- return 0;
+ return nullptr;
}
xmlChar const*const pUri(reinterpret_cast<xmlChar const*>(
m_pNamespace->first.getStr()));
@@ -102,7 +102,7 @@ namespace DOM
{
::osl::MutexGuard const g(m_rMutex);
- if ((0 == m_aNodePtr) || (0 == m_aAttrPtr)) {
+ if ((nullptr == m_aNodePtr) || (nullptr == m_aAttrPtr)) {
return OUString();
}
OUString const aName(reinterpret_cast<char const *>(m_aAttrPtr->name),
@@ -119,11 +119,11 @@ namespace DOM
{
::osl::MutexGuard const g(m_rMutex);
- if ((0 == m_aNodePtr) || (0 == m_aAttrPtr)) {
- return 0;
+ if ((nullptr == m_aNodePtr) || (nullptr == m_aAttrPtr)) {
+ return nullptr;
}
- if (0 == m_aAttrPtr->parent) {
- return 0;
+ if (nullptr == m_aAttrPtr->parent) {
+ return nullptr;
}
Reference< XElement > const xRet(
static_cast< XNode* >(GetOwnerDocument().GetCNode(
@@ -152,10 +152,10 @@ namespace DOM
{
::osl::MutexGuard const g(m_rMutex);
- if ((0 == m_aNodePtr) || (0 == m_aAttrPtr)) {
+ if ((nullptr == m_aNodePtr) || (nullptr == m_aAttrPtr)) {
return OUString();
}
- if (0 == m_aAttrPtr->children) {
+ if (nullptr == m_aAttrPtr->children) {
return OUString();
}
char const*const pContent((m_aAttrPtr->children)
@@ -173,7 +173,7 @@ namespace DOM
{
::osl::ClearableMutexGuard guard(m_rMutex);
- if ((0 == m_aNodePtr) || (0 == m_aAttrPtr)) {
+ if ((nullptr == m_aNodePtr) || (nullptr == m_aAttrPtr)) {
return;
}
@@ -191,10 +191,10 @@ namespace DOM
m_aAttrPtr->children =
xmlStringGetNodeList(m_aAttrPtr->doc, buffer.get());
xmlNodePtr tmp = m_aAttrPtr->children;
- while (tmp != NULL) {
+ while (tmp != nullptr) {
tmp->parent = m_aNodePtr;
tmp->doc = m_aAttrPtr->doc;
- if (tmp->next == NULL)
+ if (tmp->next == nullptr)
m_aNodePtr->last = tmp;
tmp = tmp->next;
}