mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8300651: Replace NULL with nullptr in share/runtime/
Reviewed-by: rehn, dholmes
This commit is contained in:
parent
3c61d5aa48
commit
71107f4648
112 changed files with 2058 additions and 2058 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -3076,7 +3076,7 @@ void VMStructs::init() {
|
|||
static int recursiveFindType(VMTypeEntry* origtypes, const char* typeName, bool isRecurse) {
|
||||
{
|
||||
VMTypeEntry* types = origtypes;
|
||||
while (types->typeName != NULL) {
|
||||
while (types->typeName != nullptr) {
|
||||
if (strcmp(typeName, types->typeName) == 0) {
|
||||
// Found it
|
||||
return 1;
|
||||
|
@ -3097,13 +3097,13 @@ static int recursiveFindType(VMTypeEntry* origtypes, const char* typeName, bool
|
|||
}
|
||||
FREE_C_HEAP_ARRAY(char, s);
|
||||
}
|
||||
const char* start = NULL;
|
||||
const char* start = nullptr;
|
||||
if (strstr(typeName, "GrowableArray<") == typeName) {
|
||||
start = typeName + strlen("GrowableArray<");
|
||||
} else if (strstr(typeName, "Array<") == typeName) {
|
||||
start = typeName + strlen("Array<");
|
||||
}
|
||||
if (start != NULL) {
|
||||
if (start != nullptr) {
|
||||
const char * end = strrchr(typeName, '>');
|
||||
int len = end - start + 1;
|
||||
char * s = NEW_C_HEAP_ARRAY(char, len, mtInternal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue