[clang-tidy] run through performance checks
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
7fe49cf24d
commit
403612c666
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user