Skip to content

Commit

Permalink
Minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 12, 2024
1 parent ef160f0 commit f4dea32
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions clip_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ bool get_image_from_clipboard(NSPasteboard* pasteboard,

#endif // CLIP_ENABLE_IMAGE

}
} // namespace osx

lock::impl::impl(void*) : m_locked(true) {
}
Expand Down Expand Up @@ -351,11 +351,13 @@ bool get_image_from_clipboard(NSPasteboard* pasteboard,
}

bool lock::impl::get_image(image& img) const {
return osx::get_image_from_clipboard([NSPasteboard generalPasteboard], &img, nullptr);
NSPasteboard* pasteboard = [NSPasteboard generalPasteboard];
return osx::get_image_from_clipboard(pasteboard, &img, nullptr);
}

bool lock::impl::get_image_spec(image_spec& spec) const {
return osx::get_image_from_clipboard([NSPasteboard generalPasteboard], nullptr, &spec);
NSPasteboard* pasteboard = [NSPasteboard generalPasteboard];
return osx::get_image_from_clipboard(pasteboard, nullptr, &spec);
}

#endif // CLIP_ENABLE_IMAGE
Expand Down

0 comments on commit f4dea32

Please sign in to comment.