mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
Remove ugly const_cast, thanks Ingo
This commit is contained in:
parent
5ddf877be6
commit
992c7397cf
@ -394,8 +394,7 @@ AppearancePrefView::_SetCurrentColorScheme(BMenuField* field)
|
||||
|
||||
const char* currentSchemeName = NULL;
|
||||
|
||||
for (color_scheme** schemes
|
||||
= const_cast<color_scheme**>(gPredefinedColorSchemes);
|
||||
for (const color_scheme** schemes = gPredefinedColorSchemes;
|
||||
*schemes != NULL; schemes++) {
|
||||
if (gCustomColorScheme == **schemes) {
|
||||
currentSchemeName = (*schemes)->name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user