summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-10 17:33:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-10 17:34:31 +0100
commit4a1edf626ad48b5955892e5590d75fa7ae5eaf58 (patch)
tree3ace4c2ac4da5529295780880f67fdfce09b6637 /sal
parent46fe3bddebf30775ae19eaa0fefe1d8e2f78eced (diff)
More loplugin:nullptr automatic rewrite (within templates)
Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/math.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index fd33130706e1..be8ebbe0137b 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -296,7 +296,7 @@ inline void doubleToString(StringT ** pResult,
{
pBuf = static_cast< typename T::Char * >(
rtl_allocateMemory(nBuf * sizeof (typename T::Char)));
- OSL_ENSURE(pBuf != 0, "Out of memory");
+ OSL_ENSURE(pBuf != nullptr, "Out of memory");
}
else
pBuf = aBuf;
@@ -787,7 +787,7 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd,
if (pStatus != nullptr)
*pStatus = eStatus;
- if (pParsedEnd != 0)
+ if (pParsedEnd != nullptr)
*pParsedEnd = p == p0 ? pBegin : p;
return fVal;