summaryrefslogtreecommitdiff
path: root/cpputools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:13:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:21 +0100
commit5185569e502240a064ef78d06d9de7fbbd93f3b6 (patch)
tree459c12726cce7434c5e1e706b30213dbe33cd271 /cpputools
parentbf3f8403029fcea9ce7d53078697efb24c09a75b (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I65186f574c8bbc4004eb40a95a33aea1ea3f4e96
Diffstat (limited to 'cpputools')
-rw-r--r--cpputools/source/sp2bv/sp2bv.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpputools/source/sp2bv/sp2bv.cxx b/cpputools/source/sp2bv/sp2bv.cxx
index f3b913586429..6632c2dede9a 100644
--- a/cpputools/source/sp2bv/sp2bv.cxx
+++ b/cpputools/source/sp2bv/sp2bv.cxx
@@ -60,17 +60,17 @@ int main(int argc, char **argv)
return -1;
}
- rtl_uString* pPath = NULL;
+ rtl_uString* pPath = nullptr;
rtl_string2UString( &pPath, argv[1], strlen(argv[1]),
osl_getThreadTextEncoding(),OSTRING_TO_OUSTRING_CVTFLAGS );
- rtl_uString* pUrl = NULL;
+ rtl_uString* pUrl = nullptr;
if (osl_getFileURLFromSystemPath(pPath, &pUrl) != osl_File_E_None)
return -1;
//escape the special characters
sal_Unicode cEscapeChar = 0x5c;
- rtl_uString* pBuffer = NULL;
+ rtl_uString* pBuffer = nullptr;
sal_Int32 nCapacity = 255;
rtl_uString_new_WithLength( &pBuffer, nCapacity );
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
pCur ++;
}
//convert back to byte string so that we can print it.
- rtl_String* pBootVar = NULL;
+ rtl_String* pBootVar = nullptr;
rtl_uString2String( &pBootVar, pBuffer->buffer, pBuffer->length,
osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS);