Fix all - 2 cppcheck performance hints
This commit is contained in:
@@ -336,7 +336,7 @@ bool TagDirectory::CPBDump (const Glib::ustring &commFName, const Glib::ustring
|
||||
return true;
|
||||
}
|
||||
|
||||
Glib::ustring TagDirectory::getDumpKey (int tagID, const Glib::ustring tagName)
|
||||
Glib::ustring TagDirectory::getDumpKey (int tagID, const Glib::ustring &tagName)
|
||||
{
|
||||
Glib::ustring key;
|
||||
|
||||
@@ -2841,7 +2841,7 @@ int ExifManager::createJPEGMarker (const TagDirectory* root, const rtengine::pro
|
||||
cl = new TagDirectory (NULL, ifdAttribs, INTEL);
|
||||
}
|
||||
|
||||
for (rtengine::procparams::ExifPairs::const_iterator i = changeList.begin(); i != changeList.end(); i++) {
|
||||
for (rtengine::procparams::ExifPairs::const_iterator i = changeList.begin(); i != changeList.end(); ++i) {
|
||||
cl->applyChange (i->first, i->second);
|
||||
}
|
||||
|
||||
@@ -2927,7 +2927,7 @@ int ExifManager::createTIFFHeader (const TagDirectory* root, const rtengine::pro
|
||||
}
|
||||
|
||||
// apply list of changes
|
||||
for (rtengine::procparams::ExifPairs::const_iterator i = changeList.begin(); i != changeList.end(); i++) {
|
||||
for (rtengine::procparams::ExifPairs::const_iterator i = changeList.begin(); i != changeList.end(); ++i) {
|
||||
cl->applyChange (i->first, i->second);
|
||||
}
|
||||
|
||||
|
@@ -101,7 +101,7 @@ protected:
|
||||
const TagAttrib* attribs; // descriptor table to decode the tags
|
||||
ByteOrder order; // byte order
|
||||
TagDirectory* parent; // parent directory (NULL if root)
|
||||
static Glib::ustring getDumpKey (int tagID, const Glib::ustring tagName);
|
||||
static Glib::ustring getDumpKey (int tagID, const Glib::ustring &tagName);
|
||||
|
||||
public:
|
||||
TagDirectory ();
|
||||
@@ -495,7 +495,7 @@ protected:
|
||||
* Get the lens info (min/man focal, min/max aperture) and compare them to the possible choice
|
||||
*/
|
||||
if (lensInfoArray) {
|
||||
for ( r = choices.lower_bound( lensID ); r != choices.upper_bound(lensID); r++ ) {
|
||||
for ( r = choices.lower_bound( lensID ); r != choices.upper_bound(lensID); ++r ) {
|
||||
if( !extractLensInfo( r->second , f1, f2, a1, a2) ) {
|
||||
continue;
|
||||
}
|
||||
@@ -532,7 +532,7 @@ protected:
|
||||
std::ostringstream candidates;
|
||||
double deltaMin = 1000.;
|
||||
|
||||
for ( r = choices.lower_bound( lensID ); r != choices.upper_bound(lensID); r++ ) {
|
||||
for ( r = choices.lower_bound( lensID ); r != choices.upper_bound(lensID); ++r ) {
|
||||
double lensAperture, dif;
|
||||
|
||||
if( !extractLensInfo( r->second , f1, f2, a1, a2) ) {
|
||||
|
Reference in New Issue
Block a user