diff --git a/src/Attribute.h b/src/Attribute.h index 0b24c6049..2ec695d05 100644 --- a/src/Attribute.h +++ b/src/Attribute.h @@ -16,7 +16,7 @@ class Attribute string name; //Attribute generation probability int prob; - Attribute(string, int); + Attribute( const string &, int); //Checks attribute probability and generate is accordingly virtual string make_random() = 0; }; @@ -25,7 +25,7 @@ class Attribute class BooleanAttribute : public Attribute { public: - BooleanAttribute(string, int); + BooleanAttribute(const string&, int); string make_random(); }; @@ -35,7 +35,7 @@ class MultiChoiceAttribute : public Attribute public: //stores various options of attributes e.g. visibility options - default, hidden, internal and protected vector choices; - MultiChoiceAttribute(string, int, vector); + MultiChoiceAttribute(const string &, int, vector); string make_random(); }; @@ -45,7 +45,7 @@ class AlignedAttribute : public Attribute public: //alignment factor - [functions] = 16 and [types] = 8 i.e. functions can take alignment upto 2^16 where as type can take upto 2^8 int alignment; - AlignedAttribute(string, int, int); + AlignedAttribute(const string &, int, int); string make_random(); }; @@ -53,7 +53,7 @@ class AlignedAttribute : public Attribute class SectionAttribute : public Attribute { public: - SectionAttribute(string, int); + SectionAttribute( const string &, int); string make_random(); };