X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Futil.h;h=7f8106f3c543775bfb10e62a04c00af7422fa9bd;hb=7bc2134d658778e04f1756c255e604b4ab5a5831;hp=564e376adc12b82dcf427854b97cd1270520c650;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/util.h b/src/lib/util.h index 564e376ad..7f8106f3c 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -122,13 +122,14 @@ extern void copy_in_bits (boost::filesystem::path from, boost::filesystem::path extern dcp::Size scale_for_display (dcp::Size s, dcp::Size display_container, dcp::Size film_container); extern dcp::DecryptedKDM decrypt_kdm_with_helpful_error (dcp::EncryptedKDM kdm); extern boost::filesystem::path default_font_file (); +extern std::string to_upper (std::string s); template std::list vector_to_list (std::vector v) { std::list l; - BOOST_FOREACH (T& i, v) { + for (auto& i: v) { l.push_back (i); } return l; @@ -139,7 +140,7 @@ std::vector list_to_vector (std::list v) { std::vector l; - BOOST_FOREACH (T& i, v) { + for (auto& i: v) { l.push_back (i); } return l;