[clang-tidy] convert several functions to const &
Found with performance-unnecessary-value-param Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ struct ApeFooter {
|
||||
};
|
||||
|
||||
bool
|
||||
tag_ape_scan(InputStream &is, ApeTagCallback callback)
|
||||
tag_ape_scan(InputStream &is, const ApeTagCallback& callback)
|
||||
try {
|
||||
std::unique_lock<Mutex> lock(is.mutex);
|
||||
|
||||
|
||||
@@ -37,6 +37,6 @@ typedef std::function<bool(unsigned long flags, const char *key,
|
||||
* present
|
||||
*/
|
||||
bool
|
||||
tag_ape_scan(InputStream &is, ApeTagCallback callback);
|
||||
tag_ape_scan(InputStream &is, const ApeTagCallback& callback);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user