bug 1252687 - make Migration's ctor constexpr r=bz
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Tue, 01 Mar 2016 18:14:39 -0500
changeset 322837 40711ac0b464c02a6ce5ce223d855a4fa3df935b
parent 322836 04f408a153133450d4d4912f07d3ce31f3ed8b2a
child 322838 739b568dda2063199073af11ced0e63f9801675e
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1252687
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1252687 - make Migration's ctor constexpr r=bz
dom/cache/DBSchema.cpp
--- a/dom/cache/DBSchema.cpp
+++ b/dom/cache/DBSchema.cpp
@@ -2394,17 +2394,17 @@ Validate(mozIStorageConnection* aConn)
 
 // -----
 // Schema migration code
 // -----
 
 typedef nsresult (*MigrationFunc)(mozIStorageConnection*);
 struct Migration
 {
-  Migration(int32_t aFromVersion, MigrationFunc aFunc)
+  MOZ_CONSTEXPR Migration(int32_t aFromVersion, MigrationFunc aFunc)
     : mFromVersion(aFromVersion)
     , mFunc(aFunc)
   { }
   int32_t mFromVersion;
   MigrationFunc mFunc;
 };
 
 // Declare migration functions here.  Each function should upgrade