refs #659 Use constexpr with isPinned method of data cache traits.

This commit is contained in:
Mathew Sutcliffe
2016-05-26 19:57:22 +01:00
parent d0d100da5e
commit 4c08d1cc86
5 changed files with 5 additions and 5 deletions

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()