Fix Clang-10 warnings
This commit is contained in:
@@ -778,7 +778,7 @@ Gtk::Widget* Preferences::getColorManPanel ()
|
||||
|
||||
const std::vector<Glib::ustring> profiles = rtengine::ICCStore::getInstance ()->getProfiles (rtengine::ICCStore::ProfileType::MONITOR);
|
||||
|
||||
for (const auto profile : profiles) {
|
||||
for (const auto& profile : profiles) {
|
||||
if (profile.find("file:") != 0) {
|
||||
std::string fileis_RTv4 = profile.substr(0, 4);
|
||||
|
||||
@@ -847,7 +847,7 @@ Gtk::Widget* Preferences::getColorManPanel ()
|
||||
|
||||
const std::vector<Glib::ustring> prtprofiles = rtengine::ICCStore::getInstance ()->getProfiles (rtengine::ICCStore::ProfileType::PRINTER);
|
||||
|
||||
for (const auto prtprofile : prtprofiles) {
|
||||
for (const auto& prtprofile : prtprofiles) {
|
||||
prtProfile->append (prtprofile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user