Merge pull request #3375 from Beep6581/fix_all_cppcheck_performance_hints

Fix cppcheck performance hints
This commit is contained in:
Ingo Weyrich
2016-07-08 12:42:34 +02:00
committed by GitHub
44 changed files with 178 additions and 191 deletions

View File

@@ -136,7 +136,7 @@ void ImageIO::setMetadata (const rtexif::TagDirectory* eroot, const rtengine::pr
iptc = iptc_data_new ();
for (rtengine::procparams::IPTCPairs::const_iterator i = iptcc.begin(); i != iptcc.end(); i++) {
for (rtengine::procparams::IPTCPairs::const_iterator i = iptcc.begin(); i != iptcc.end(); ++i) {
if (i->first == "Keywords" && !(i->second.empty())) {
for (unsigned int j = 0; j < i->second.size(); j++) {
IptcDataSet * ds = iptc_dataset_new ();