mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Avoid UTF8->UTF16->UTF8 roundtrip when logging on mobile
Make writeToAppLogFile() take an std::string parameter to avoid an unnecessary UTF8->UTF16->UTF8 (std::string->QString->char *) roundtrip. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7d1e0ef0d1
commit
4d4c250589
3 changed files with 8 additions and 8 deletions
|
|
@ -167,7 +167,7 @@ public:
|
|||
QObject *qmlWindow;
|
||||
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||
void writeToAppLogFile(QString logText);
|
||||
void writeToAppLogFile(const std::string &logText);
|
||||
#endif
|
||||
qPrefCloudStorage::cloud_status oldStatus() const;
|
||||
void setOldStatus(const qPrefCloudStorage::cloud_status value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue