Skip to content

Commit

Permalink
Fix spacing, cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Jan 28, 2025
1 parent 8ae3930 commit ece5e9a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/helpers/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ FakeMouseMovement(BView* view)
view->GetMouse(&location, &buttons);
view->ConvertToScreen(&location);
set_mouse_position(location.x, location.y);

}



std::string
GetFileName(const std::string filename)
{
Expand Down Expand Up @@ -85,8 +83,8 @@ GetVectorIcon(const std::string icon, BBitmap* bitmap)

BResources* resources = BApplication::AppResources();
size_t size;
const uint8* rawIcon;
rawIcon = (const uint8*)resources->LoadResource(B_VECTOR_ICON_TYPE, icon.c_str(), &size);
const uint8* rawIcon = reinterpret_cast<const uint8*>(
resources->LoadResource(B_VECTOR_ICON_TYPE, icon.c_str(), &size));
if (rawIcon == nullptr)
return B_ERROR;

Expand Down Expand Up @@ -227,7 +225,8 @@ KeyDownMessageFilter::Filter(BMessage* message, BHandler** target)

template<>
entry_ref
find_value<B_REF_TYPE>(BMessage* message, std::string name, int index) {
find_value<B_REF_TYPE>(BMessage* message, std::string name, int index)
{
entry_ref ref;
status_t status = message->FindRef(name.c_str(), index, &ref);
if(status == B_OK) {
Expand Down

0 comments on commit ece5e9a

Please sign in to comment.