| 68 | } |
| 69 | |
| 70 | void StringVectorToCStringVector(const std::vector<std::string>& strings, |
| 71 | std::vector<const char*>* c_strings) { |
| 72 | c_strings->clear(); |
| 73 | c_strings->reserve(strings.size() + 1); |
| 74 | for (const auto& str : strings) { |
| 75 | c_strings->push_back(str.c_str()); |
| 76 | } |
| 77 | c_strings->push_back(nullptr); |
| 78 | } |
| 79 | |
| 80 | } // namespace crashpad |
no test coverage detected