[Libreoffice-commits] core.git: sal/rtl
Chris Sherlock
chris.sherlock79 at gmail.com
Fri Nov 10 10:25:27 UTC 2017
sal/rtl/bootstrap.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 394dbb7f637afe10041506975b5dbc2202a78b4d
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Sun Nov 5 01:20:54 2017 +1100
rtl: change nullptr comparison
Change-Id: I0c356b100b732e259646d4ebb5d0aedd4dc4bcdd
Reviewed-on: https://gerrit.libreoffice.org/44302
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65 at poczta.onet.pl>
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(
More information about the Libreoffice-commits
mailing list