summaryrefslogtreecommitdiff
path: root/sal/rtl/ustrbuf.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:21:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:35 +0100
commit26f05d59bc1c25b8a0d19be7f4738fd12e557001 (patch)
tree560cccfaacf4b63385aa52ac4b3912248e87cbef /sal/rtl/ustrbuf.cxx
parent5bbdb9423e15b68438bb8397c15635e044129e28 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I1bc6c87fcd6e5e96362623be94c59be216a3b2b8
Diffstat (limited to 'sal/rtl/ustrbuf.cxx')
-rw-r--r--sal/rtl/ustrbuf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/ustrbuf.cxx b/sal/rtl/ustrbuf.cxx
index 7f5d698c76ec..89b897f21573 100644
--- a/sal/rtl/ustrbuf.cxx
+++ b/sal/rtl/ustrbuf.cxx
@@ -62,7 +62,7 @@ rtl_uString * SAL_CALL rtl_uStringBuffer_makeStringAndClear( rtl_uString ** ppTh
assert(nCapacity);
// avoid an un-necessary atomic ref/unref pair
rtl_uString *pStr = *ppThis;
- *ppThis = NULL;
+ *ppThis = nullptr;
rtl_uString_new (ppThis);
*nCapacity = 0;
@@ -103,7 +103,7 @@ void SAL_CALL rtl_uStringbuffer_ensureCapacity
if (minimumCapacity > *capacity)
{
rtl_uString * pTmp = *This;
- rtl_uString * pNew = NULL;
+ rtl_uString * pNew = nullptr;
*capacity = ((*This)->length + 1) * 2;
if (minimumCapacity > *capacity)
/* still lower, set to the minimum capacity */