mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Common: Replace StringBeginsWith/StringEndsWith with std equivalents
Obsoletes these functions in favor of the standard member functions added in C++20.
This commit is contained in:
@ -526,7 +526,7 @@ bool GameCubePane::SetGCIFolder(ExpansionInterface::Slot slot, const QString& pa
|
||||
|
||||
std::string raw_path =
|
||||
WithUnifiedPathSeparators(QFileInfo(path).absoluteFilePath().toStdString());
|
||||
while (StringEndsWith(raw_path, "/"))
|
||||
while (raw_path.ends_with('/'))
|
||||
raw_path.pop_back();
|
||||
|
||||
// The user might be attempting to reset this path to its default, check for this.
|
||||
|
Reference in New Issue
Block a user