Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e2f0eff authored by Yi Kong's avatar Yi Kong
Browse files

Fix build with ToT libc++

frameworks/native/cmds/installd/file_parsing.h:55:17: error: no matching constructor for initialization of 'std::ifstream' (aka 'basic_ifstream<char>')
   55 |   std::ifstream ifs(str_file);
      |                 ^   ~~~~~~~~

Test: Build with ToT libc++
Change-Id: I6aa9c173ea0acf633b1662f2118b9271000f6af4
parent e19c5e32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ bool ParseFile(std::istream& input_stream, Func parse) {
}

template<typename Func>
bool ParseFile(std::string_view str_file, Func parse) {
bool ParseFile(const std::string& str_file, Func parse) {
  std::ifstream ifs(str_file);
  if (!ifs.is_open()) {
    return false;