| # | Line 43 | Line 43 | bool copyFile(QString src, QString dest) | |
|---|---|---|
| 43 | //// Caution don't use as for example: std::cout << toCstr(a) << " " << toCstr(b); | |
| 44 | //// as the result will be always a. | |
| 45 | //inline const char* toCstr(const QString &myString){ | |
| 46 | < | // return myString.toLatin1().constData(); |
| 46 | > | // return myString.toUtf8().constData(); |
| 47 | //} | |
| 48 | // Converts a std::string to QString | |
| 49 | inline QString toQString(std::string myString){ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |