am 114605b0: am 5fd94dfe: Merge "Replace auto -> const auto&/auto&&"
* commit '114605b03666230f11113990b828356bfe692278': Replace auto -> const auto&/auto&&
This commit is contained in:
commit
a60b1aebb7
@ -331,7 +331,7 @@ void soinfo::set_dt_runpath(const char* path) {
|
|||||||
std::string origin = dirname(get_realpath());
|
std::string origin = dirname(get_realpath());
|
||||||
// FIXME: add $LIB and $PLATFORM.
|
// FIXME: add $LIB and $PLATFORM.
|
||||||
std::pair<std::string, std::string> substs[] = {{"ORIGIN", origin}};
|
std::pair<std::string, std::string> substs[] = {{"ORIGIN", origin}};
|
||||||
for (std::string& s : dt_runpath_) {
|
for (auto&& s : dt_runpath_) {
|
||||||
size_t pos = 0;
|
size_t pos = 0;
|
||||||
while (pos < s.size()) {
|
while (pos < s.size()) {
|
||||||
pos = s.find("$", pos);
|
pos = s.find("$", pos);
|
||||||
@ -1169,7 +1169,7 @@ bool ZipArchiveCache::get_or_open(const char* zip_path, ZipArchiveHandle* handle
|
|||||||
}
|
}
|
||||||
|
|
||||||
ZipArchiveCache::~ZipArchiveCache() {
|
ZipArchiveCache::~ZipArchiveCache() {
|
||||||
for (auto it : cache_) {
|
for (const auto& it : cache_) {
|
||||||
CloseArchive(it.second);
|
CloseArchive(it.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user