mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #659 Use constexpr with isPinned method of data cache traits.
This commit is contained in:
@@ -28,7 +28,7 @@ namespace BlackCore
|
||||
static const char *key() { return "dbuser"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
static constexpr bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const BlackMisc::Network::CAuthenticatedUser &defaultValue()
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace BlackCore
|
||||
static const char *key() { return "bootstrap"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
static constexpr bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const CGlobalSetup &defaultValue()
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace BlackCore
|
||||
static const char *key() { return "version"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
static constexpr bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const CUpdateInfo &defaultValue()
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace BlackCore
|
||||
static const char *key() { return "vatsim"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
static constexpr bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const CVatsimSetup &defaultValue()
|
||||
|
||||
Reference in New Issue
Block a user