summaryrefslogtreecommitdiff
path: root/accessibility/source/extended/textwindowaccessibility.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:09:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:15 +0100
commit3fbe1c814da59a4ed722ee5777bec0c59eb57a25 (patch)
tree3dc31c1b7bc08976df85aec9339f97082b47b8c0 /accessibility/source/extended/textwindowaccessibility.cxx
parentebc194c696e5c9b1acf320cfc582b4ab56c14900 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I5e94b084c923fa5d9c925630669cf698b34f34ff
Diffstat (limited to 'accessibility/source/extended/textwindowaccessibility.cxx')
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index a970ef1508e0..b21c77169dd0 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -31,17 +31,17 @@ namespace accessibility
{
void SfxListenerGuard::startListening(::SfxBroadcaster & rNotifier)
{
- OSL_ENSURE(m_pNotifier == 0, "called more than once");
+ OSL_ENSURE(m_pNotifier == nullptr, "called more than once");
m_pNotifier = &rNotifier;
m_rListener.StartListening(*m_pNotifier, true);
}
void SfxListenerGuard::endListening()
{
- if (m_pNotifier != 0)
+ if (m_pNotifier != nullptr)
{
m_rListener.EndListening(*m_pNotifier);
- m_pNotifier = 0;
+ m_pNotifier = nullptr;
}
}
@@ -221,7 +221,7 @@ Paragraph::getAccessibleAtPoint(css::awt::Point const &)
throw (css::uno::RuntimeException, std::exception)
{
checkDisposed();
- return 0;
+ return nullptr;
}
// virtual
@@ -1511,7 +1511,7 @@ Document::getAccessibleAtPoint(css::awt::Point const & rPoint)
return getAccessibleChild(aIt);
}
}
- return 0;
+ return nullptr;
}
void Document::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -1537,7 +1537,7 @@ void SAL_CALL Document::disposing()
{
m_aEngineListener.endListening();
m_aViewListener.endListening();
- if (m_xParagraphs.get() != 0)
+ if (m_xParagraphs.get() != nullptr)
disposeParagraphs();
VCLXAccessibleComponent::disposing();
}
@@ -1751,7 +1751,7 @@ IMPL_LINK_TYPED(Document, WindowEventHandler, ::VclWindowEvent&, rEvent, void)
void Document::init()
{
- if (m_xParagraphs.get() == 0)
+ if (m_xParagraphs.get() == nullptr)
{
const sal_uInt32 nCount = m_rEngine.GetParagraphCount();
m_xParagraphs.reset(new Paragraphs);