mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +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"; }
|
static const char *key() { return "dbuser"; }
|
||||||
|
|
||||||
//! First load is synchronous
|
//! First load is synchronous
|
||||||
static bool isPinned() { return true; }
|
static constexpr bool isPinned() { return true; }
|
||||||
|
|
||||||
//! Default value
|
//! Default value
|
||||||
static const BlackMisc::Network::CAuthenticatedUser &defaultValue()
|
static const BlackMisc::Network::CAuthenticatedUser &defaultValue()
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ namespace BlackCore
|
|||||||
static const char *key() { return "bootstrap"; }
|
static const char *key() { return "bootstrap"; }
|
||||||
|
|
||||||
//! First load is synchronous
|
//! First load is synchronous
|
||||||
static bool isPinned() { return true; }
|
static constexpr bool isPinned() { return true; }
|
||||||
|
|
||||||
//! Default value
|
//! Default value
|
||||||
static const CGlobalSetup &defaultValue()
|
static const CGlobalSetup &defaultValue()
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ namespace BlackCore
|
|||||||
static const char *key() { return "version"; }
|
static const char *key() { return "version"; }
|
||||||
|
|
||||||
//! First load is synchronous
|
//! First load is synchronous
|
||||||
static bool isPinned() { return true; }
|
static constexpr bool isPinned() { return true; }
|
||||||
|
|
||||||
//! Default value
|
//! Default value
|
||||||
static const CUpdateInfo &defaultValue()
|
static const CUpdateInfo &defaultValue()
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ namespace BlackCore
|
|||||||
static const char *key() { return "vatsim"; }
|
static const char *key() { return "vatsim"; }
|
||||||
|
|
||||||
//! First load is synchronous
|
//! First load is synchronous
|
||||||
static bool isPinned() { return true; }
|
static constexpr bool isPinned() { return true; }
|
||||||
|
|
||||||
//! Default value
|
//! Default value
|
||||||
static const CVatsimSetup &defaultValue()
|
static const CVatsimSetup &defaultValue()
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
//! If true, then value will be synchronously loaded when CDataCache is constructed.
|
//! If true, then value will be synchronously loaded when CDataCache is constructed.
|
||||||
//! Good for small, important values; bad for large ones.
|
//! Good for small, important values; bad for large ones.
|
||||||
static bool isPinned() { return false; }
|
static constexpr bool isPinned() { return false; }
|
||||||
|
|
||||||
//! Deleted default constructor.
|
//! Deleted default constructor.
|
||||||
CDataTrait() = delete;
|
CDataTrait() = delete;
|
||||||
|
|||||||
Reference in New Issue
Block a user