[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 <zzip/zzip.h>
|
||||||
|
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
struct ZzipDir {
|
struct ZzipDir {
|
||||||
ZZIP_DIR *const dir;
|
ZZIP_DIR *const dir;
|
||||||
|
|
||||||
@ -91,11 +93,11 @@ class ZzipInputStream final : public InputStream {
|
|||||||
ZZIP_FILE *const file;
|
ZZIP_FILE *const file;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ZzipInputStream(const std::shared_ptr<ZzipDir>& _dir, const char *_uri,
|
ZzipInputStream(std::shared_ptr<ZzipDir> _dir, const char *_uri,
|
||||||
Mutex &_mutex,
|
Mutex &_mutex,
|
||||||
ZZIP_FILE *_file)
|
ZZIP_FILE *_file)
|
||||||
:InputStream(_uri, _mutex),
|
:InputStream(_uri, _mutex),
|
||||||
dir(_dir), file(_file) {
|
dir(std::move(_dir)), file(_file) {
|
||||||
//we are seekable (but its not recommendent to do so)
|
//we are seekable (but its not recommendent to do so)
|
||||||
seekable = true;
|
seekable = true;
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ ParseContainerPath(Path path_fs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Music_Emu*
|
static Music_Emu*
|
||||||
LoadGmeAndM3u(GmeContainerPath container) {
|
LoadGmeAndM3u(const GmeContainerPath& container) {
|
||||||
|
|
||||||
const char *path = container.path.c_str();
|
const char *path = container.path.c_str();
|
||||||
const char *suffix = uri_get_suffix(path);
|
const char *suffix = uri_get_suffix(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user