Mercurial > minori
diff src/core/strings.cc @ 120:275da698697d
config: template-ify INI
now it's... slightly less ugly :')
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 08 Nov 2023 18:13:37 -0500 |
parents | 39521c47c7a3 |
children | 9613d72b097e |
line wrap: on
line diff
--- a/src/core/strings.cc Wed Nov 08 13:50:00 2023 -0500 +++ b/src/core/strings.cc Wed Nov 08 18:13:37 2023 -0500 @@ -158,6 +158,7 @@ return QString::fromWCharArray(wstring.c_str(), wstring.length()); } +/* not really an "int"... but who cares? */ int ToInt(const std::string& str, int def) { int tmp = 0; try {