[clang-tidy] run through performance checks

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-17 21:43:29 -07:00 committed by Max Kellermann
parent 7fe49cf24d
commit 403612c666
2 changed files with 5 additions and 3 deletions

View File

@ -32,6 +32,8 @@
#include <zzip/zzip.h>
#include <utility>
struct ZzipDir {
ZZIP_DIR *const dir;
@ -91,11 +93,11 @@ class ZzipInputStream final : public InputStream {
ZZIP_FILE *const file;
public:
ZzipInputStream(const std::shared_ptr<ZzipDir>& _dir, const char *_uri,
ZzipInputStream(std::shared_ptr<ZzipDir> _dir, const char *_uri,
Mutex &_mutex,
ZZIP_FILE *_file)
:InputStream(_uri, _mutex),
dir(_dir), file(_file) {
dir(std::move(_dir)), file(_file) {
//we are seekable (but its not recommendent to do so)
seekable = true;

View File

@ -108,7 +108,7 @@ ParseContainerPath(Path path_fs)
}
static Music_Emu*
LoadGmeAndM3u(GmeContainerPath container) {
LoadGmeAndM3u(const GmeContainerPath& container) {
const char *path = container.path.c_str();
const char *suffix = uri_get_suffix(path);