mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
chore(clang-tidy): fix clang tidy warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
4c9081a934
commit
bac959bc6f
23 changed files with 650 additions and 546 deletions
|
|
@ -41,7 +41,7 @@
|
|||
#include <QObject>
|
||||
#include <QRunnable>
|
||||
#include <memory>
|
||||
#include "minecraft/mod/Mod.h"
|
||||
#include "minecraft/mod/Resource.h"
|
||||
#include "tasks/Task.h"
|
||||
|
||||
class ResourceFolderLoadTask : public Task {
|
||||
|
|
@ -54,11 +54,11 @@ class ResourceFolderLoadTask : public Task {
|
|||
ResultPtr result() const { return m_result; }
|
||||
|
||||
public:
|
||||
ResourceFolderLoadTask(const QDir& resource_dir,
|
||||
const QDir& index_dir,
|
||||
bool is_indexed,
|
||||
bool clean_orphan,
|
||||
std::function<Resource*(const QFileInfo&)> create_function);
|
||||
ResourceFolderLoadTask(const QDir& resourceDir,
|
||||
const QDir& indexDir,
|
||||
bool isIndexed,
|
||||
bool cleanOrphan,
|
||||
std::function<Resource*(const QFileInfo&)> createFunction);
|
||||
|
||||
bool canAbort() const override { return true; }
|
||||
bool abort() override
|
||||
|
|
@ -76,7 +76,7 @@ class ResourceFolderLoadTask : public Task {
|
|||
QDir m_resource_dir, m_index_dir;
|
||||
bool m_is_indexed;
|
||||
bool m_clean_orphan;
|
||||
std::function<Resource*(QFileInfo const&)> m_create_func;
|
||||
std::function<Resource*(const QFileInfo&)> m_create_func;
|
||||
ResultPtr m_result;
|
||||
|
||||
std::atomic<bool> m_aborted = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue