mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Convert most remaining C-style casts to C++-style ones (#11867)
This commit is contained in:
committed by
GitHub
parent
7646f1b7e4
commit
9ef8d6da42
@@ -454,7 +454,7 @@ namespace String
|
||||
|
||||
utf8* SkipBOM(utf8* buffer)
|
||||
{
|
||||
return const_cast<utf8*>(SkipBOM((const utf8*)buffer));
|
||||
return const_cast<utf8*>(SkipBOM(static_cast<const utf8*>(buffer)));
|
||||
}
|
||||
|
||||
const utf8* SkipBOM(const utf8* buffer)
|
||||
@@ -474,7 +474,7 @@ namespace String
|
||||
|
||||
codepoint_t GetNextCodepoint(utf8* ptr, utf8** nextPtr)
|
||||
{
|
||||
return GetNextCodepoint((const utf8*)ptr, (const utf8**)nextPtr);
|
||||
return GetNextCodepoint(static_cast<const utf8*>(ptr), const_cast<const utf8**>(nextPtr));
|
||||
}
|
||||
|
||||
codepoint_t GetNextCodepoint(const utf8* ptr, const utf8** nextPtr)
|
||||
|
||||
Reference in New Issue
Block a user