Commit 4beb3bd9 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

QML: remove reserved names.



See [global.names] (17.6.4.3.2 in the C++11 spec.)

Change-Id: Iee0972f2eac0c48ac9ca62bf6ced7cb2db669f05
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 6775e623
......@@ -212,7 +212,7 @@ public:
class QMLJS_EXPORT Snapshot
{
typedef QHash<QString, Document::Ptr> _Base;
typedef QHash<QString, Document::Ptr> Base;
QHash<QString, Document::Ptr> _documents;
QHash<QString, QList<Document::Ptr> > _documentsByPath;
QHash<QString, LibraryInfo> _libraries;
......@@ -223,8 +223,8 @@ public:
Snapshot(const Snapshot &o);
~Snapshot();
typedef _Base::iterator iterator;
typedef _Base::const_iterator const_iterator;
typedef Base::iterator iterator;
typedef Base::const_iterator const_iterator;
const_iterator begin() const { return _documents.begin(); }
const_iterator end() const { return _documents.end(); }
......
......@@ -156,10 +156,10 @@ public:
virtual bool getSourceLocation(QString *fileName, int *line, int *column) const;
};
template <typename _RetTy> const _RetTy *value_cast(const Value *)
template <typename RetTy> const RetTy *value_cast(const Value *)
{
// Produce a good error message if a specialization is missing.
_RetTy::ERROR_MissingValueCastSpecialization();
RetTy::ERROR_MissingValueCastSpecialization();
return 0;
}
......
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