- gi->AddExcludedEpisode(): Pass FString variable through as reference instead of by value.

This commit is contained in:
Mitch Richters 2021-11-15 08:56:49 +11:00 committed by Christoph Oelckers
parent 974ca7bd1d
commit 2a7d0e6fe3
3 changed files with 3 additions and 3 deletions

View file

@ -120,7 +120,7 @@ struct GameInterface
virtual void LeavePortal(spritetype* viewer, int type) {}
virtual bool GetGeoEffect(GeoEffect* eff, int viewsector) { return false; }
virtual int Voxelize(int sprnum) { return -1; }
virtual void AddExcludedEpisode(FString episode) {}
virtual void AddExcludedEpisode(const FString& episode) {}
virtual int GetCurrentSkill() { return -1; }
virtual bool IsQAVInterpTypeValid(const FString& type) { return false; }
virtual void AddQAVInterpProps(const int res_id, const FString& interptype, const bool loopable, const TMap<int, TArray<int>>&& ignoredata) { }

View file

@ -68,7 +68,7 @@ struct GameInterface : public ::GameInterface
void EnterPortal(spritetype* viewer, int type) override;
void LeavePortal(spritetype* viewer, int type) override;
bool GetGeoEffect(GeoEffect* eff, int viewsector) override;
void AddExcludedEpisode(FString episode) override;
void AddExcludedEpisode(const FString& episode) override;
int GetCurrentSkill() override;
};

View file

@ -62,7 +62,7 @@ enum { VERSIONCHECK = 41 };
static TArray<FString> exclEpisodes;
void GameInterface::AddExcludedEpisode(FString episode)
void GameInterface::AddExcludedEpisode(const FString& episode)
{
auto s = FStringTable::MakeMacro(episode.GetChars());
s.StripRight();