Do not use C++11 utf8 strings - not supported by VC2013.

This commit is contained in:
Itai Nahshon
2017-07-18 17:43:09 +02:00
committed by wmayer
parent 29ff650f65
commit a8faef009b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -45,8 +45,8 @@ QString UnitsSchemaMmMin::schemaTranslate(const Quantity &quant, double &factor,
factor = 1.0;
}
else if (unit == Unit::Angle) {
//unitString = QString::fromUtf8("\xC2\xB0");
unitString = QString::fromUtf8(u8"\u00B0");
unitString = QString::fromUtf8("\xC2\xB0");
//unitString = QString::fromUtf8(u8"\u00B0"); //C++11 - Not supported by VS2013
factor = 1.0;
}
else if (unit == Unit::Velocity) {
+1 -1
View File
@@ -30,7 +30,7 @@
#include "UnitsSchema.h"
namespace Base {
/* Metric units schema intended for design of small parts and for CNC
* Lengths are alwais in mm.