summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-31 10:35:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-31 10:35:02 +0200
commitce382378ef0b882d4961e32bb0c35d6b76336fae (patch)
tree4c0279ffe7e2bfcbc34a97db46f60034e4ab90d6 /vcl
parent08c3c504644ee978c2ec75ba083765b6ffddf08c (diff)
fix clang -fpermissive warnings in Qt5AccessibleWidget
error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization Change-Id: Id002e2bf0363ddde1a1172cf6364180dbcac64ee
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5AccessibleWidget.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index bb547c6bc974..6e47fa41f6b9 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -992,7 +992,7 @@ bool Qt5AccessibleWidget::selectColumn(int column)
Reference<XAccessibleTableSelection> xTableSelection(m_xAccessible->getAccessibleContext(),
UNO_QUERY);
if (!xTableSelection.is())
- return nullptr;
+ return false;
return xTableSelection->selectColumn(column);
}
@@ -1001,7 +1001,7 @@ bool Qt5AccessibleWidget::selectRow(int row)
Reference<XAccessibleTableSelection> xTableSelection(m_xAccessible->getAccessibleContext(),
UNO_QUERY);
if (!xTableSelection.is())
- return nullptr;
+ return false;
return xTableSelection->selectRow(row);
}
@@ -1063,7 +1063,7 @@ bool Qt5AccessibleWidget::unselectColumn(int column)
Reference<XAccessibleTableSelection> xTableSelection(m_xAccessible->getAccessibleContext(),
UNO_QUERY);
if (!xTableSelection.is())
- return nullptr;
+ return false;
return xTableSelection->unselectColumn(column);
}
@@ -1072,7 +1072,7 @@ bool Qt5AccessibleWidget::unselectRow(int row)
Reference<XAccessibleTableSelection> xTableSelection(m_xAccessible->getAccessibleContext(),
UNO_QUERY);
if (!xTableSelection.is())
- return nullptr;
+ return false;
return xTableSelection->unselectRow(row);
}