ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/XmlTools2/trunk/util.h
(Generate patch)

Comparing XmlTools2/trunk/util.h (file contents):
Revision 926 by s10k, Wed Feb 5 18:31:05 2014 UTC vs.
Revision 935 by s10k, Thu Feb 6 13:05:39 2014 UTC

# 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){

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)