mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Address some clang-tidy warnings
This commit is contained in:
@@ -46,7 +46,7 @@ static const std::map<std::string, OverrideTarget> override_LUT = {
|
||||
{ "*", OverrideTarget::ALL_FACES }
|
||||
};
|
||||
|
||||
TextureOverrideSource::TextureOverrideSource(std::string filepath)
|
||||
TextureOverrideSource::TextureOverrideSource(const std::string &filepath)
|
||||
{
|
||||
std::ifstream infile(filepath.c_str());
|
||||
std::string line;
|
||||
@@ -115,7 +115,7 @@ TextureOverrideSource::TextureOverrideSource(std::string filepath)
|
||||
}
|
||||
|
||||
//! Get all overrides that apply to item definitions
|
||||
std::vector<TextureOverride> TextureOverrideSource::getItemTextureOverrides()
|
||||
std::vector<TextureOverride> TextureOverrideSource::getItemTextureOverrides() const
|
||||
{
|
||||
std::vector<TextureOverride> found_overrides;
|
||||
|
||||
@@ -128,7 +128,7 @@ std::vector<TextureOverride> TextureOverrideSource::getItemTextureOverrides()
|
||||
}
|
||||
|
||||
//! Get all overrides that apply to node definitions
|
||||
std::vector<TextureOverride> TextureOverrideSource::getNodeTileOverrides()
|
||||
std::vector<TextureOverride> TextureOverrideSource::getNodeTileOverrides() const
|
||||
{
|
||||
std::vector<TextureOverride> found_overrides;
|
||||
|
||||
|
Reference in New Issue
Block a user