Mercurial > minori
diff src/core/strings.cpp @ 77:6f7385bd334c
*: update
formatted all source files, no more subclassing QThread... many other
changes :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 06 Oct 2023 06:18:53 -0400 |
parents | 3364fadc8a36 |
children |
line wrap: on
line diff
--- a/src/core/strings.cpp Wed Oct 04 01:46:33 2023 -0400 +++ b/src/core/strings.cpp Fri Oct 06 06:18:53 2023 -0400 @@ -96,7 +96,11 @@ std::string ToUtf8String(const QString& string) { QByteArray ba = string.toUtf8(); - return std::string(ba.data(), ba.size()); + return std::string(ba.constData(), ba.size()); +} + +std::string ToUtf8String(const QByteArray& ba) { + return std::string(ba.constData(), ba.size()); } QString ToQString(const std::string& string) {