summaryrefslogtreecommitdiff
path: root/sc/source/ui/Accessibility/AccessibleCell.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:22:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:36 +0100
commitde29ac09535d814e4be7e1bf0f10beb9f0f847e3 (patch)
tree139f75d657cb825622e812254b8b7df4e509140b /sc/source/ui/Accessibility/AccessibleCell.cxx
parent60c40af090e420a8619b5236bde1ff4ef79100c6 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleCell.cxx')
-rw-r--r--sc/source/ui/Accessibility/AccessibleCell.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx
index e50345fc7b29..eb10c6004350 100644
--- a/sc/source/ui/Accessibility/AccessibleCell.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCell.cxx
@@ -112,9 +112,9 @@ void SAL_CALL ScAccessibleCell::disposing()
if (mpViewShell)
{
mpViewShell->RemoveAccessibilityObject(*this);
- mpViewShell = NULL;
+ mpViewShell = nullptr;
}
- mpAccDoc = NULL;
+ mpAccDoc = nullptr;
ScAccessibleCellBase::disposing();
}
@@ -161,7 +161,7 @@ Rectangle ScAccessibleCell::GetBoundingBoxOnScreen() const
vcl::Window* pWindow = mpViewShell->GetWindowByPos(meSplitPos);
if (pWindow)
{
- Rectangle aRect = pWindow->GetWindowExtentsRelative(NULL);
+ Rectangle aRect = pWindow->GetWindowExtentsRelative(nullptr);
aCellRect.setX(aCellRect.getX() + aRect.getX());
aCellRect.setY(aCellRect.getY() + aRect.getY());
}
@@ -290,7 +290,7 @@ uno::Reference<XAccessibleRelationSet> SAL_CALL
{
SolarMutexGuard aGuard;
IsObjectValid();
- utl::AccessibleRelationSetHelper* pRelationSet = NULL;
+ utl::AccessibleRelationSetHelper* pRelationSet = nullptr;
if (mpAccDoc)
pRelationSet = mpAccDoc->GetRelationSet(&maCellAddress);
if (!pRelationSet)
@@ -326,7 +326,7 @@ uno::Sequence< OUString> SAL_CALL
bool ScAccessibleCell::IsDefunc(
const uno::Reference<XAccessibleStateSet>& rxParentStates)
{
- return ScAccessibleContextBase::IsDefunc() || (mpDoc == NULL) || (mpViewShell == NULL) || !getAccessibleParent().is() ||
+ return ScAccessibleContextBase::IsDefunc() || (mpDoc == nullptr) || (mpViewShell == nullptr) || !getAccessibleParent().is() ||
(rxParentStates.is() && rxParentStates->contains(AccessibleStateType::DEFUNC));
}
@@ -386,7 +386,7 @@ bool ScAccessibleCell::IsSelected()
ScDocument* ScAccessibleCell::GetDocument(ScTabViewShell* pViewShell)
{
- ScDocument* pDoc = NULL;
+ ScDocument* pDoc = nullptr;
if (pViewShell)
pDoc = pViewShell->GetViewData().GetDocument();
return pDoc;