Replace qDebug() by report_info in qthelper.cpp

To do so replace QStrings by std::strings in ui-language code.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-26 15:11:25 +01:00 committed by bstoeger
parent 9febfdd084
commit 9923d49624
2 changed files with 40 additions and 22 deletions

View file

@ -74,6 +74,12 @@ inline bool starts_with(const std::string &s, const char *s2)
return s.rfind(s2, 0) == 0;
}
// Sadly, std::string::contains only with C++23!
inline bool contains(const std::string &s, char c)
{
return s.find(c) != std::string::npos;
}
std::string join(const std::vector<std::string> &l, const std::string &separator, bool skip_empty = false);
#endif