Disable the copy of SemanticEnvironment.

This commit is contained in:
Roberto Raggi
2010-07-19 19:24:31 +02:00
parent 1702543d80
commit 55936532c2
3 changed files with 13 additions and 10 deletions

View File

@@ -50,9 +50,12 @@ public:
class CPLUSPLUS_EXPORT SubstitutionEnvironment
{
Q_DISABLE_COPY(SubstitutionEnvironment)
QList<Substitution *> substs;
public:
SubstitutionEnvironment() {}
FullySpecifiedType apply(const Name *name, Rewrite *rewrite) const
{
if (name) {
@@ -107,11 +110,11 @@ private:
};
CPLUSPLUS_EXPORT FullySpecifiedType rewriteType(const FullySpecifiedType &type,
const SubstitutionEnvironment &env,
SubstitutionEnvironment *env,
Control *control);
CPLUSPLUS_EXPORT const Name *rewriteName(const Name *name,
const SubstitutionEnvironment &env,
SubstitutionEnvironment *env,
Control *control);
} // end of namespace CPlusPlus