Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarCollectionDatabase.cpp
diff options
context:
space:
mode:
authorLDA <lda@ldasuku.net>2023-06-26 11:48:27 -0700
committerLDA <lda@ldasuku.net>2023-06-26 11:58:35 -0700
commitc9e889723b7af832322d178975e6e440d6cd3ae5 (patch)
treea8429c30ecf46ed1388df13b614141e73973cd9f /source/game/StarCollectionDatabase.cpp
parent4585c9cafa87cad6b54397af7e9375cc31b72f89 (diff)
resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
Diffstat (limited to 'source/game/StarCollectionDatabase.cpp')
-rw-r--r--source/game/StarCollectionDatabase.cpp6
1 files changed, 3 insertions, 3 deletions
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<Collection> 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<Collectable> 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<Collectable> 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);
}
}