use StrContains instead of std::find
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
#ifndef YAZE_APP_CORE_PROJECT_H
|
#ifndef YAZE_APP_CORE_PROJECT_H
|
||||||
#define YAZE_APP_CORE_PROJECT_H
|
#define YAZE_APP_CORE_PROJECT_H
|
||||||
|
|
||||||
|
#include <abseil-cpp/absl/strings/match.h>
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
|
#include "absl/strings/string_view.h"
|
||||||
#include "app/core/common.h"
|
#include "app/core/common.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
@@ -65,7 +68,7 @@ struct Project {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.find(kPreviousRomFilenameDelimiter) != std::string::npos) {
|
if (absl::StrContains(line, kPreviousRomFilenameDelimiter)) {
|
||||||
previous_rom_filenames_.push_back(
|
previous_rom_filenames_.push_back(
|
||||||
line.substr(line.find(kPreviousRomFilenameDelimiter) +
|
line.substr(line.find(kPreviousRomFilenameDelimiter) +
|
||||||
kPreviousRomFilenameDelimiter.size() + 1));
|
kPreviousRomFilenameDelimiter.size() + 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user