xaizek / uncov (License: AGPLv3+) (since 2018-12-07)
Uncov(er) is a tool that collects and processes code coverage reports.
Commit d6c03d1eead51d70a06f71531a3eb1f11a707769

Avoid making copies in a for-each loop
Author: xaizek
Author date (UTC): 2025-08-16 14:07
Committer name: xaizek
Committer date (UTC): 2025-08-16 14:07
Parent(s): e03f4eedcc5d0466ce9aef4bb732b7cab79fa560
Signing key: 99DC5E4DB05F6BE2
Tree: 27a257cff857b0fbba6acddf94cde2bae437464e
File Lines added Lines deleted
web/main.cpp 1 1
File web/main.cpp changed (mode: 100644) (index 760dde6..931353a)
... ... typename std::enable_if<vectorArgs<T>::value, void>::type
50 50 setArgs(T &mt, const std::map<std::string, std::string> &args) setArgs(T &mt, const std::map<std::string, std::string> &args)
51 51 { {
52 52 std::vector<std::string> argsVector; std::vector<std::string> argsVector;
53 for (const auto entry : args) {
53 for (const auto &entry : args) {
54 54 argsVector.push_back(entry.first + '=' + entry.second); argsVector.push_back(entry.first + '=' + entry.second);
55 55 } }
56 56 mt.setArgs(argsVector); mt.setArgs(argsVector);
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/uncov

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/uncov

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master