mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Use explicit nullptr instead of aggregate init
Makes it a bit more obvious that HCURSOR is a pointer.
This commit is contained in:
@@ -127,7 +127,7 @@ constexpr uint32_t xembed_focus_first = 1;
|
|||||||
*/
|
*/
|
||||||
// static const HCURSOR arrow_cursor = LoadCursor(nullptr, IDC_ARROW);
|
// static const HCURSOR arrow_cursor = LoadCursor(nullptr, IDC_ARROW);
|
||||||
inline HCURSOR arrow_cursor() {
|
inline HCURSOR arrow_cursor() {
|
||||||
static HCURSOR cursor{};
|
static HCURSOR cursor = nullptr;
|
||||||
if (!cursor) {
|
if (!cursor) {
|
||||||
cursor = LoadCursor(nullptr, IDC_ARROW);
|
cursor = LoadCursor(nullptr, IDC_ARROW);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ constexpr char mime_text_plain_name[] = "text/plain";
|
|||||||
// Revert this once Wine 7.21 is old enough that noone uses it anymore.
|
// Revert this once Wine 7.21 is old enough that noone uses it anymore.
|
||||||
// static const HCURSOR dnd_accepted_cursor = LoadCursor(nullptr, IDC_HAND);
|
// static const HCURSOR dnd_accepted_cursor = LoadCursor(nullptr, IDC_HAND);
|
||||||
inline HCURSOR dnd_accepted_cursor() {
|
inline HCURSOR dnd_accepted_cursor() {
|
||||||
static HCURSOR cursor{};
|
static HCURSOR cursor = nullptr;
|
||||||
if (!cursor) {
|
if (!cursor) {
|
||||||
cursor = LoadCursor(nullptr, IDC_HAND);
|
cursor = LoadCursor(nullptr, IDC_HAND);
|
||||||
}
|
}
|
||||||
@@ -68,7 +68,7 @@ inline HCURSOR dnd_accepted_cursor() {
|
|||||||
}
|
}
|
||||||
// static const HCURSOR dnd_denied_cursor = LoadCursor(nullptr, IDC_NO);
|
// static const HCURSOR dnd_denied_cursor = LoadCursor(nullptr, IDC_NO);
|
||||||
inline HCURSOR dnd_denied_cursor() {
|
inline HCURSOR dnd_denied_cursor() {
|
||||||
static HCURSOR cursor{};
|
static HCURSOR cursor = nullptr;
|
||||||
if (!cursor) {
|
if (!cursor) {
|
||||||
cursor = LoadCursor(nullptr, IDC_NO);
|
cursor = LoadCursor(nullptr, IDC_NO);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user