Skip to content

Commit

Permalink
Use c++ cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Oct 22, 2024
1 parent f73e3ca commit e67cda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CamStatusView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ CamStatusView::AttachedToWindow()
size_t size;
const void* buffer = resources->LoadResource(B_VECTOR_ICON_TYPE, "record_icon", &size);
if (buffer != NULL)
BIconUtils::GetVectorIcon((uint8*)buffer, size, fRecordingBitmap);
BIconUtils::GetVectorIcon(reinterpret_cast<const uint8*>(buffer), size, fRecordingBitmap);
buffer = resources->LoadResource(B_VECTOR_ICON_TYPE, "pause_icon", &size);
if (buffer != NULL)
BIconUtils::GetVectorIcon((uint8*)buffer, size, fPauseBitmap);
BIconUtils::GetVectorIcon(reinterpret_cast<const uint8*>(buffer), size, fPauseBitmap);

fBitmapView->SetBitmap(NULL);

Expand Down

0 comments on commit e67cda4

Please sign in to comment.