From: gtsoul-tech Date: Tue, 23 Apr 2024 11:47:21 +0000 (+0300) Subject: useInitializationList X-Git-Tag: vectorscan/5.4.12^2~63^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182f7ddb4775ead881959326fb3004f51ccab2fc;p=thirdparty%2Fvectorscan.git useInitializationList --- diff --git a/src/util/graph_small_color_map.h b/src/util/graph_small_color_map.h index 249b7153..a85f4b77 100644 --- a/src/util/graph_small_color_map.h +++ b/src/util/graph_small_color_map.h @@ -102,10 +102,10 @@ public: using category = boost::read_write_property_map_tag; small_color_map(size_t n_in, const IndexMap &index_map_in) - : n(n_in), index_map(index_map_in) { - size_t num_bytes = (n + entries_per_byte - 1) / entries_per_byte; - data = std::make_shared>(num_bytes); - fill(small_color::white); + : n(n_in), + index_map(index_map_in), + data(std::make_shared>((n_in + entries_per_byte - 1) / entries_per_byte)) { + fill(small_color::white); } void fill(small_color color) {