Fix some coverity issues, next try...

This commit is contained in:
heckflosse
2018-11-22 22:07:39 +01:00
parent 09b65bcc92
commit 944b901a65
2 changed files with 4 additions and 4 deletions

View File

@@ -362,7 +362,7 @@ Glib::ustring TagDirectory::getDumpKey (int tagID, const Glib::ustring &tagName)
return key;
}
void TagDirectory::addTag (Tag* tag)
void TagDirectory::addTag (Tag* &tag)
{
// look up if it already exists:
@@ -374,7 +374,7 @@ void TagDirectory::addTag (Tag* tag)
}
}
void TagDirectory::addTagFront (Tag* tag)
void TagDirectory::addTagFront (Tag* &tag)
{
// look up if it already exists:

View File

@@ -156,8 +156,8 @@ public:
bool getXMPTagValue (const char* name, char* value) const;
void keepTag (int ID);
void addTag (Tag* a);
void addTagFront (Tag* a);
void addTag (Tag* &a);
void addTagFront (Tag* &a);
void replaceTag (Tag* a);
inline Tag* getTagByIndex (int ix)
{