mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-01 02:15:54 -04:00
Revert "Revert "newer standards prefer nullptr over NULL - this is most of them but there are others too""
This reverts commit 8e2160f33e.
This commit is contained in:
@@ -87,7 +87,7 @@ int UTF8_convertCharToUTF16( char * ptr , UTF16 * ret )
|
||||
int UTF8_convertToUTF16( char * ptr , UTF16 * ret, int limit )
|
||||
{
|
||||
int len = 0;
|
||||
while (( *ptr != 0 ) && ( len < ( limit - 1 ) ))//we use limit -1 to leave room for the null terminator
|
||||
while (( *ptr != 0 ) && ( len < ( limit - 1 ) ))//we use limit -1 to leave room for the nullptr terminator
|
||||
{
|
||||
int clen = UTF8_convertCharToUTF16( ptr, ret );
|
||||
ptr += clen;
|
||||
|
||||
Reference in New Issue
Block a user