aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/style/mstylesheetattribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/style/mstylesheetattribute.cpp')
-rw-r--r--src/corelib/style/mstylesheetattribute.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/corelib/style/mstylesheetattribute.cpp b/src/corelib/style/mstylesheetattribute.cpp
index ab5cf40d..4398ef02 100644
--- a/src/corelib/style/mstylesheetattribute.cpp
+++ b/src/corelib/style/mstylesheetattribute.cpp
@@ -265,7 +265,7 @@ namespace {
static QtDatatypeConverter DataTypeConverter;
-MStyleSheetAttribute::MStyleSheetAttribute(MUniqueStringCache::Index name, const QByteArray& value, qint64 position)
+MStyleSheetAttribute::MStyleSheetAttribute(const QByteArray& name, const QByteArray& value, qint64 position)
: name(name), value(value), position(position)
{
}
@@ -279,11 +279,6 @@ MStyleSheetAttribute::MStyleSheetAttribute(const MStyleSheetAttribute &other)
QByteArray MStyleSheetAttribute::getName()
{
- return MUniqueStringCache::indexToString(name);
-}
-
-MUniqueStringCache::Index MStyleSheetAttribute::getNameID()
-{
return name;
}
@@ -817,7 +812,7 @@ bool MStyleSheetAttribute::writeAttribute(const QString &filename,
}
}
- MStyleSheetParser::outputParseError(filename, "Not a valid attribute(" + QLatin1String(property.typeName()) + "): " + MUniqueStringCache::indexToString(name) + " : " + value, MStyleSheetParser::getLineNum(filename, position));
+ MStyleSheetParser::outputParseError(filename, "Not a valid attribute(" + QLatin1String(property.typeName()) + "): " + name + ": " + value, MStyleSheetParser::getLineNum(filename, position));
return false;
}