flipper | Replace global static variables in FlipperSocketProvider with local static.

Summary: Replacing global static varaibles with local static. No cost at startup time, and also fixes any potential static initialization order fiasco.

Differential Revision: D45900297

fbshipit-source-id: 80e3ffb6527f7f7b6b08de4a6209f0f8298f7bf5
This commit is contained in:
Nikita Lutsenko
2023-05-16 14:15:04 -07:00
committed by Facebook GitHub Bot
parent 7386608a53
commit 0069155b1e
2 changed files with 11 additions and 11 deletions

View File

@@ -71,8 +71,7 @@ class FlipperSocketProvider {
static bool hasProvider();
private:
static std::unique_ptr<FlipperSocketProvider> provider_;
static std::unique_ptr<FlipperSocketProvider> shelvedProvider_;
static std::unique_ptr<FlipperSocketProvider>& defaultProvider();
};
} // namespace flipper