Skip to content

Commit

Permalink
Remove not quite correct warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
10110111 committed Jan 22, 2024
1 parent 1e80c1e commit 4d688e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/modules/NebulaMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ void NebulaMgr::loadCultureSpecificNameForNamedObject(const QJsonArray& data, co
const auto commonNameIndexIt = commonNameToIdMap.find(commonName.toUpper());
if (commonNameIndexIt == commonNameToIdMap.end())
{
qWarning() << "No DSO called" << commonName << "found when loading culture-specific names (FIXME: remove this warning, since the name might be not of a DSO)";
// This may actually not even be a nebula, so we shouldn't emit any warning, just return
return;
}
const auto dsoId = commonNameIndexIt.value();
Expand Down
2 changes: 1 addition & 1 deletion src/core/modules/StarMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ void StarMgr::loadCultureSpecificNameForNamedObject(const QJsonArray& data, cons
const auto commonNameIndexIt = commonNamesIndexToSearchWhileLoading.find(commonName.toUpper());
if (commonNameIndexIt == commonNamesIndexToSearchWhileLoading.end())
{
qWarning() << "No star called" << commonName << "found when loading culture-specific names (FIXME: remove this warning, since the name may be not of a star)";
// This may actually not even be a star, so we shouldn't emit any warning, just return
return;
}
const int HIP = commonNameIndexIt.value();
Expand Down

0 comments on commit 4d688e4

Please sign in to comment.