From c9e889723b7af832322d178975e6e440d6cd3ae5 Mon Sep 17 00:00:00 2001 From: LDA Date: Mon, 26 Jun 2023 11:48:27 -0700 Subject: resolved most of the compiler warnings/errors under gcc also update xxhash and tinyformat --- source/base/StarAssets.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/base/StarAssets.cpp') diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp index f805b16..a24000d 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -242,7 +242,7 @@ ImageConstPtr Assets::image(AssetPath const& path) const { void Assets::queueImages(StringList const& paths) const { queueAssets(paths.transformed([](String const& path) { - auto components = AssetPath::split(path); + const auto components = AssetPath::split(path); validatePath(components, true, true); return AssetId{AssetType::Image, move(components)}; @@ -275,7 +275,7 @@ AudioConstPtr Assets::audio(String const& path) const { void Assets::queueAudios(StringList const& paths) const { queueAssets(paths.transformed([](String const& path) { - auto components = AssetPath::split(path); + const auto components = AssetPath::split(path); validatePath(components, false, false); return AssetId{AssetType::Audio, move(components)}; @@ -866,7 +866,7 @@ shared_ptr Assets::loadImage(AssetPath const& path) const { auto newData = make_shared(); Image newImage = *source->image; path.directives.forEach([&](auto const& entry, Directives const& directives) { - if (auto error = entry.operation.ptr()) + if (auto error = entry.operation.template ptr()) std::rethrow_exception(error->exception); else processImageOperation(entry.operation, newImage, [&](String const& ref) { return references.get(ref).get(); }); -- cgit v1.2.3