diff --git a/common/lc_traintrack.cpp b/common/lc_traintrack.cpp index 684b1da5..058e65ea 100644 --- a/common/lc_traintrack.cpp +++ b/common/lc_traintrack.cpp @@ -15,7 +15,7 @@ // auto replace cross when going over a straight section // set focus connection after adding -std::map lcTrainTrackInfo::mSleepers; +std::map lcTrainTrackInfo::mSleepers; void lcTrainTrackInfo::Initialize(lcPiecesLibrary* Library) { @@ -99,7 +99,7 @@ void lcTrainTrackInfo::Initialize(lcPiecesLibrary* Library) for (QJsonObject::const_iterator SleepersIt = JsonSleepers.constBegin(); SleepersIt != JsonSleepers.constEnd(); ++SleepersIt) { - quint32 Group = qHash(SleepersIt.key()); + size_t Group = qHash(SleepersIt.key()); QString PartId = SleepersIt->toString(); PieceInfo* SleeperInfo = Library->FindPiece(PartId.toLatin1(), nullptr, false, false); @@ -235,7 +235,7 @@ std::vector lcTrainTrackInfo::GetInsertPieceInfo(lcPiece* Cur if (CurrentConnectionType.Sleeper == lcTrainTrackConnectionSleeper::NeedsSleeper && NewConnections[NewConnectionIndex].Type.Sleeper == lcTrainTrackConnectionSleeper::NeedsSleeper) { - std::map::const_iterator SleeperIt = mSleepers.find(CurrentConnectionType.Group); + std::map::const_iterator SleeperIt = mSleepers.find(CurrentConnectionType.Group); if (SleeperIt == mSleepers.end()) return Pieces; diff --git a/common/lc_traintrack.h b/common/lc_traintrack.h index d05616d5..2deadb11 100644 --- a/common/lc_traintrack.h +++ b/common/lc_traintrack.h @@ -16,7 +16,7 @@ enum class lcTrainTrackConnectionSleeper struct lcTrainTrackConnectionType { - quint32 Group; + size_t Group; lcTrainTrackConnectionSleeper Sleeper; }; @@ -89,5 +89,5 @@ protected: int mColorCode = 16; bool mVisible = false; - static std::map mSleepers; + static std::map mSleepers; };