Commit 3179e464 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Compile fix Mac gcc 4.2.1

parent 6ec5d034
......@@ -116,11 +116,11 @@ class PropertyEditDelegate : public QItemDelegate
// add quotes if it's a string
QmlJSPropertyInspector::PropertyType propertyType = m_treeWidget->getTypeFor(index.row());
QChar quote('\"');
QChar backslash('\\');
const QChar quote(QLatin1Char('\"'));
if ( propertyType == QmlJSPropertyInspector::StringType ) {
propertyValue = propertyValue.replace(quote,backslash+quote);
const QChar backslash(QLatin1Char('\\'));
propertyValue = propertyValue.replace(quote, QString(backslash) + quote);
}
if ( propertyType == QmlJSPropertyInspector::StringType || propertyType == QmlJSPropertyInspector::ColorType ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment