summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-11-05 01:20:54 +1100
committerEike Rathke <erack@redhat.com>2017-11-10 11:24:55 +0100
commit394dbb7f637afe10041506975b5dbc2202a78b4d (patch)
treed632f3df17371497d7922156d81e4f715f251b1b /sal
parent047cc1d976516c527f4c7051a98aade59c7494d9 (diff)
rtl: change nullptr comparison
Change-Id: I0c356b100b732e259646d4ebb5d0aedd4dc4bcdd Reviewed-on: https://gerrit.libreoffice.org/44302 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/bootstrap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index 5cb251f9bba4..d7b015c3ff2e 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -622,7 +622,7 @@ struct bootstrap_map {
static t * get()
{
- if (m_map == nullptr)
+ if (!m_map)
m_map = new t;
return m_map;
@@ -735,7 +735,7 @@ sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(
bool found = false;
if(ppValue && pName)
{
- if (handle == nullptr)
+ if (!handle)
handle = get_static_bootstrap_handle();
found = static_cast< Bootstrap_Impl * >(handle)->getValue(