mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
General: Resolve -Wcast-qual warnings
We can just avoid casting away const in order to resolve these warnings.
This commit is contained in:
@@ -73,7 +73,7 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
const hecl::Database::Project* m_proj = nullptr;
|
||||
hecl::Database::Project* m_proj = nullptr;
|
||||
const hecl::Database::DataSpecEntry* m_origSpec = nullptr;
|
||||
const hecl::Database::DataSpecEntry* m_pcSpec = nullptr;
|
||||
/* Used to resolve cooked paths */
|
||||
@@ -155,9 +155,7 @@ public:
|
||||
void Shutdown() { CancelBackgroundIndex(); }
|
||||
bool IsBusy() const { return m_asyncLoadMap.size() != 0; }
|
||||
|
||||
SObjectTag TagFromPath(hecl::SystemStringView path) const {
|
||||
return TagFromPath(hecl::ProjectPath(*(hecl::Database::Project*)m_proj, path));
|
||||
}
|
||||
SObjectTag TagFromPath(hecl::SystemStringView path) const { return TagFromPath(hecl::ProjectPath(*m_proj, path)); }
|
||||
|
||||
~ProjectResourceFactoryBase() override { Shutdown(); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user