Changeset View
Changeset View
Standalone View
Standalone View
cursors/kpCursorProvider.cpp
Show All 34 Lines | |||||
35 | 35 | | |||
36 | static const QCursor *TheLightCursor = nullptr; | 36 | static const QCursor *TheLightCursor = nullptr; | ||
37 | 37 | | |||
38 | 38 | | |||
39 | // public static | 39 | // public static | ||
40 | QCursor kpCursorProvider::lightCross () | 40 | QCursor kpCursorProvider::lightCross () | ||
41 | { | 41 | { | ||
42 | // TODO: don't leak (although it's cleaned up on exit by OS anyway) | 42 | // TODO: don't leak (although it's cleaned up on exit by OS anyway) | ||
43 | if (!::TheLightCursor) | 43 | if (!::TheLightCursor) { | ||
44 | ::TheLightCursor = kpCursorLightCrossCreate (); | 44 | ::TheLightCursor = kpCursorLightCrossCreate (); | ||
45 | } | ||||
45 | 46 | | |||
46 | return *::TheLightCursor; | 47 | return *::TheLightCursor; | ||
47 | } | 48 | } |