Replace strcmp with c++ equivalent when comparing std::strings.
This commit is contained in:
@@ -134,7 +134,7 @@ void GameState::renderDeckMenu(DeckMenu * _menu, const vector<DeckMetaData *>& d
|
||||
// deck sorting routines
|
||||
bool sortByName(DeckMetaData * d1, DeckMetaData * d2)
|
||||
{
|
||||
return strcmp(d1->getName().c_str(), d2->getName().c_str()) < 0;
|
||||
return d1->getName() < d2->getName();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ void MTGPacks::loadAll()
|
||||
sprintf(myFilename, "packs/%s",relative.c_str());
|
||||
if (relative[0] == '.')
|
||||
continue;
|
||||
if (!strcmp(relative.c_str(), "default_booster.txt"))
|
||||
if (relative == "default_booster.txt")
|
||||
continue;
|
||||
MTGPack * p = NEW MTGPack(myFilename);
|
||||
if (!p->isValid())
|
||||
|
||||
Reference in New Issue
Block a user