diff options
Diffstat (limited to 'source/game/StarCollectionDatabase.cpp')
-rw-r--r-- | source/game/StarCollectionDatabase.cpp | 6 |
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); } } |