mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9febfdd084
commit
9923d49624
2 changed files with 40 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue