Fix Clang-10 warnings

This commit is contained in:
Flössie
2020-04-02 13:23:57 +02:00
parent 29596bb457
commit 8886402e93
5 changed files with 14 additions and 14 deletions

View File

@@ -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);
}