File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11//
22// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
3+ // Copyright (c) 2024 Alexander Grund
34//
45// Distributed under the Boost Software License, Version 1.0.
56// https://www.boost.org/LICENSE_1_0.txt
@@ -93,9 +94,7 @@ namespace boost { namespace locale {
9394
9495 std::locale generator::generate (const std::string& id) const
9596 {
96- std::locale base = std::locale::classic ();
97-
98- return generate (base, id);
97+ return generate (std::locale::classic (), id);
9998 }
10099
101100 std::locale generator::generate (const std::locale& base, const std::string& id) const
@@ -110,8 +109,8 @@ namespace boost { namespace locale {
110109 set_all_options (*backend, id);
111110
112111 std::locale result = base;
113- category_t facets = d->cats ;
114- char_facet_t chars = d->chars ;
112+ const category_t facets = d->cats ;
113+ const char_facet_t chars = d->chars ;
115114
116115 for (category_t facet = per_character_facet_first; facet <= per_character_facet_last; ++facet) {
117116 if (!(facets & facet))
You can’t perform that action at this time.
0 commit comments