Commit 369df152 authored by Murray Cumming's avatar Murray Cumming
Browse files

Some probably-useless use of constexpr.

parent 85f28cf9
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment