loplugin:nullptr (automatic rewrite)

Change-Id: I65186f574c8bbc4004eb40a95a33aea1ea3f4e96
This commit is contained in:
Stephan Bergmann
2015-11-10 10:13:22 +01:00
parent bf3f840302
commit 5185569e50

View File

@@ -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);