[glom] Some probably-useless use of constexpr.



commit 369df1527e35f6f6f5c41c5e2113dcb290381a95
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 8 13:45:24 2016 +0100

    Some probably-useless use of constexpr.

 glom/import_csv/dialog_import_csv.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/import_csv/dialog_import_csv.cc b/glom/import_csv/dialog_import_csv.cc
index ad9c434..11ab019 100644
--- a/glom/import_csv/dialog_import_csv.cc
+++ b/glom/import_csv/dialog_import_csv.cc
@@ -39,7 +39,7 @@ namespace
 
 // When auto-detecting the encoding, we try to read the file in these
 // encodings, in order:
-const char* AUTODETECT_ENCODINGS_CHARSETS[] = {
+constexpr const char* AUTODETECT_ENCODINGS_CHARSETS[] = {
   "UTF-8",
   "ISO-8859-1",
   "ISO-8859-15",
@@ -48,7 +48,7 @@ const char* AUTODETECT_ENCODINGS_CHARSETS[] = {
   "UCS-4"
 };
 
-const auto N_AUTODETECT_ENCODINGS_CHARSETS = 
sizeof(AUTODETECT_ENCODINGS_CHARSETS)/sizeof(AUTODETECT_ENCODINGS_CHARSETS[0]);
+constexpr auto N_AUTODETECT_ENCODINGS_CHARSETS = 
sizeof(AUTODETECT_ENCODINGS_CHARSETS)/sizeof(AUTODETECT_ENCODINGS_CHARSETS[0]);
 
 
 Glib::ustring encoding_display(const Glib::ustring& name, const Glib::ustring& charset)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]