Commit 403612c6 authored by Rosen Penev's avatar Rosen Penev Committed by Max Kellermann

[clang-tidy] run through performance checks

Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent 7fe49cf2
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment