Index: src/UIElements/TextUI/Query/TextQuery.hpp
===================================================================
--- src/UIElements/TextUI/Query/TextQuery.hpp	(revision 1c55b87bd6df0fd793f6ec74d286a02d9a0de67c)
+++ src/UIElements/TextUI/Query/TextQuery.hpp	(revision f130d4bfaa72247e3972474a6e9f5ca33463eaa8)
@@ -19,5 +19,5 @@
 class TextDialog::AtomTextQuery : public Dialog::TQuery<const atom *> {
 public:
-  AtomTextQuery(Parameter<const atom *> &, std::string title, std::string _description = NULL);
+  AtomTextQuery(Parameter<const atom *> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~AtomTextQuery();
   virtual bool handle();
@@ -26,5 +26,5 @@
 class TextDialog::AtomsTextQuery : public Dialog::TQuery<std::vector<const atom *> > {
 public:
-  AtomsTextQuery(Parameter<std::vector<const atom *> > &, std::string title, std::string _description = NULL);
+  AtomsTextQuery(Parameter<std::vector<const atom *> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~AtomsTextQuery();
   virtual bool handle();
@@ -33,5 +33,5 @@
 class TextDialog::BooleanTextQuery : public Dialog::TQuery<bool> {
 public:
-  BooleanTextQuery(Parameter<bool> &, std::string title, std::string _description = NULL);
+  BooleanTextQuery(Parameter<bool> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~BooleanTextQuery();
   virtual bool handle();
@@ -40,5 +40,5 @@
 class TextDialog::RealSpaceMatrixTextQuery : public Dialog::TQuery<RealSpaceMatrix> {
 public:
-  RealSpaceMatrixTextQuery(Parameter<RealSpaceMatrix> &, std::string title, std::string _description = NULL);
+  RealSpaceMatrixTextQuery(Parameter<RealSpaceMatrix> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~RealSpaceMatrixTextQuery();
   virtual bool handle();
@@ -47,5 +47,5 @@
 class TextDialog::DoubleTextQuery : public Dialog::TQuery<double> {
 public:
-  DoubleTextQuery(Parameter<double> &, std::string title, std::string _description = NULL);
+  DoubleTextQuery(Parameter<double> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~DoubleTextQuery();
   virtual bool handle();
@@ -54,5 +54,5 @@
 class TextDialog::DoublesTextQuery : public Dialog::TQuery<std::vector<double> > {
 public:
-  DoublesTextQuery(Parameter<std::vector<double> > &, std::string title, std::string _description = NULL);
+  DoublesTextQuery(Parameter<std::vector<double> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~DoublesTextQuery();
   virtual bool handle();
@@ -61,5 +61,5 @@
 class TextDialog::ElementTextQuery : public Dialog::TQuery<const element *> {
 public:
-  ElementTextQuery(Parameter<const element *> &, std::string title, std::string _description = NULL);
+  ElementTextQuery(Parameter<const element *> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~ElementTextQuery();
   virtual bool handle();
@@ -68,5 +68,5 @@
 class TextDialog::ElementsTextQuery : public Dialog::TQuery<std::vector<const element *> > {
 public:
-  ElementsTextQuery(Parameter<std::vector<const element *> > &, std::string title, std::string _description = NULL);
+  ElementsTextQuery(Parameter<std::vector<const element *> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~ElementsTextQuery();
   virtual bool handle();
@@ -75,5 +75,5 @@
 class TextDialog::EmptyTextQuery : public Dialog::EmptyQuery {
 public:
-  EmptyTextQuery(std::string title, std::string _description = NULL);
+  EmptyTextQuery(const std::string &_title, const std::string &_description = NULL);
   virtual ~EmptyTextQuery();
   virtual bool handle();
@@ -82,5 +82,5 @@
 class TextDialog::FileTextQuery : public Dialog::TQuery<boost::filesystem::path> {
 public:
-  FileTextQuery(Parameter<boost::filesystem::path> &, std::string title, std::string _description = NULL);
+  FileTextQuery(Parameter<boost::filesystem::path> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~FileTextQuery();
   virtual bool handle();
@@ -89,5 +89,5 @@
 class TextDialog::FilesTextQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > {
 public:
-  FilesTextQuery(Parameter<std::vector< boost::filesystem::path> > &param, std::string title, std::string _description = NULL);
+  FilesTextQuery(Parameter<std::vector< boost::filesystem::path> > &param, const std::string &_title, const std::string &_description = NULL);
   virtual ~FilesTextQuery();
   virtual bool handle();
@@ -96,5 +96,5 @@
 class TextDialog::IntTextQuery : public Dialog::TQuery<int> {
 public:
-  IntTextQuery(Parameter<int> &, std::string title, std::string _description = NULL);
+  IntTextQuery(Parameter<int> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~IntTextQuery();
   virtual bool handle();
@@ -103,5 +103,5 @@
 class TextDialog::IntsTextQuery : public Dialog::TQuery<std::vector<int> > {
 public:
-  IntsTextQuery(Parameter<std::vector<int> > &, std::string title, std::string _description = NULL);
+  IntsTextQuery(Parameter<std::vector<int> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~IntsTextQuery();
   virtual bool handle();
@@ -110,5 +110,5 @@
 class TextDialog::MoleculeTextQuery : public Dialog::TQuery<const molecule *> {
 public:
-  MoleculeTextQuery(Parameter<const molecule *> &, std::string title, std::string _description = NULL);
+  MoleculeTextQuery(Parameter<const molecule *> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~MoleculeTextQuery();
   virtual bool handle();
@@ -117,5 +117,5 @@
 class TextDialog::MoleculesTextQuery : public Dialog::TQuery<std::vector<const molecule *> > {
 public:
-  MoleculesTextQuery(Parameter<std::vector<const molecule *> > &, std::string title, std::string _description = NULL);
+  MoleculesTextQuery(Parameter<std::vector<const molecule *> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~MoleculesTextQuery();
   virtual bool handle();
@@ -124,5 +124,5 @@
 class TextDialog::StringTextQuery : public Dialog::TQuery<std::string> {
 public:
-  StringTextQuery(Parameter<std::string> &, std::string title, std::string _description = NULL);
+  StringTextQuery(Parameter<std::string> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~StringTextQuery();
   virtual bool handle();
@@ -131,5 +131,5 @@
 class TextDialog::StringsTextQuery : public Dialog::TQuery<std::vector<std::string> > {
 public:
-  StringsTextQuery(Parameter<std::vector<std::string> > &, std::string title, std::string _description = NULL);
+  StringsTextQuery(Parameter<std::vector<std::string> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~StringsTextQuery();
   virtual bool handle();
@@ -138,5 +138,5 @@
 class TextDialog::UnsignedIntTextQuery : public Dialog::TQuery<unsigned int> {
 public:
-  UnsignedIntTextQuery(Parameter<unsigned int> &, std::string title, std::string _description = NULL);
+  UnsignedIntTextQuery(Parameter<unsigned int> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~UnsignedIntTextQuery();
   virtual bool handle();
@@ -145,5 +145,5 @@
 class TextDialog::UnsignedIntsTextQuery : public Dialog::TQuery<std::vector<unsigned int> > {
 public:
-  UnsignedIntsTextQuery(Parameter<std::vector<unsigned int> > &, std::string title, std::string _description = NULL);
+  UnsignedIntsTextQuery(Parameter<std::vector<unsigned int> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~UnsignedIntsTextQuery();
   virtual bool handle();
@@ -152,5 +152,5 @@
 class TextDialog::VectorTextQuery : public Dialog::TQuery<Vector> {
 public:
-  VectorTextQuery(Parameter<Vector> &, std::string title, std::string _description = NULL);
+  VectorTextQuery(Parameter<Vector> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~VectorTextQuery();
   virtual bool handle();
@@ -159,5 +159,5 @@
 class TextDialog::VectorsTextQuery : public Dialog::TQuery<std::vector<Vector> > {
 public:
-  VectorsTextQuery(Parameter<std::vector<Vector> > &, std::string title, std::string _description = NULL);
+  VectorsTextQuery(Parameter<std::vector<Vector> > &, const std::string &_title, const std::string &_description = NULL);
   virtual ~VectorsTextQuery();
   virtual bool handle();
@@ -166,5 +166,5 @@
 class TextDialog::RandomNumberDistribution_ParametersTextQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> {
 public:
-  RandomNumberDistribution_ParametersTextQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title, std::string _description = NULL);
+  RandomNumberDistribution_ParametersTextQuery(Parameter<RandomNumberDistribution_Parameters> &, const std::string &_title, const std::string &_description = NULL);
   virtual ~RandomNumberDistribution_ParametersTextQuery();
   virtual bool handle();
