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/game/StarCollectionDatabase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/game/StarCollectionDatabase.cpp') diff --git a/source/game/StarCollectionDatabase.cpp b/source/game/StarCollectionDatabase.cpp index 1f6d84d..c407278 100644 --- a/source/game/StarCollectionDatabase.cpp +++ b/source/game/StarCollectionDatabase.cpp @@ -58,7 +58,7 @@ List CollectionDatabase::collections() const { Collection CollectionDatabase::collection(String const& collectionName) const { try { return m_collections.get(collectionName); - } catch (MapException e) { + } catch (MapException const& e) { throw CollectionDatabaseException(strf("Collection '%s' not found", collectionName), e); } } @@ -66,7 +66,7 @@ Collection CollectionDatabase::collection(String const& collectionName) const { List CollectionDatabase::collectables(String const& collectionName) const { try { return m_collectables.get(collectionName).values(); - } catch (MapException e) { + } catch (MapException const& e) { throw CollectionDatabaseException(strf("Collection '%s' not found", collectionName), e); } } @@ -74,7 +74,7 @@ List CollectionDatabase::collectables(String const& collectionName) Collectable CollectionDatabase::collectable(String const& collectionName, String const& collectableName) const { try { return m_collectables.get(collectionName).get(collectableName); - } catch (MapException e) { + } catch (MapException const& e) { throw CollectionDatabaseException(strf("Collectable '%s' not found in collection '%s'", collectableName, collectionName), e); } } -- cgit v1.2.3