mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Android: Refactor to use inline statics
This commit is contained in:
parent
242405323e
commit
11752d061f
1 changed files with 4 additions and 9 deletions
|
|
@ -2089,8 +2089,8 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
static Point<float> lastMousePos;
|
||||
static int64 touchesDown;
|
||||
inline static Point<float> lastMousePos{};
|
||||
inline static int64 touchesDown = 0;
|
||||
|
||||
//==============================================================================
|
||||
struct StartupActivityCallbackListener final : public ActivityLifecycleCallbacks
|
||||
|
|
@ -2529,8 +2529,8 @@ private:
|
|||
|
||||
//==============================================================================
|
||||
friend class Displays;
|
||||
static AndroidComponentPeer* frontWindow;
|
||||
static GlobalRef activityCallbackListener;
|
||||
inline static AndroidComponentPeer* frontWindow = nullptr;
|
||||
inline static GlobalRef activityCallbackListener;
|
||||
|
||||
static constexpr jint GRAVITY_LEFT = 0x3, GRAVITY_TOP = 0x30;
|
||||
static constexpr jint TYPE_APPLICATION = 0x2;
|
||||
|
|
@ -2550,11 +2550,6 @@ private:
|
|||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidComponentPeer)
|
||||
};
|
||||
|
||||
Point<float> AndroidComponentPeer::lastMousePos;
|
||||
int64 AndroidComponentPeer::touchesDown = 0;
|
||||
AndroidComponentPeer* AndroidComponentPeer::frontWindow = nullptr;
|
||||
GlobalRef AndroidComponentPeer::activityCallbackListener;
|
||||
|
||||
//==============================================================================
|
||||
ComponentPeer* Component::createNewPeer (int styleFlags, void* nativeWindow)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue