Remove unneeded but error-prone copy ctor and assignment operator
authorSebastian Goth <seezer@roath.org>
Tue, 15 Jul 2008 10:27:32 +0000 (12:27 +0200)
committerSebastian Goth <seezer@roath.org>
Wed, 16 Jul 2008 22:57:29 +0000 (00:57 +0200)
src/common/cliparser.cpp
src/common/cliparser.h

index 8b1b559..8829d06 100644 (file)
@@ -191,22 +191,3 @@ CliParserArg::CliParserArg(const CliArgType _type, const char _shortName, const
     boolValue(false)
 {
 }
     boolValue(false)
 {
 }
-
-CliParserArg::CliParserArg(const CliParserArg &other) {
-  type = other.type;
-  shortName = other.shortName;
-  help = other.help;
-  def = other.def;
-  value = other.value;
-  boolValue = other.boolValue;
-}
-
-CliParserArg &CliParserArg::operator=(const CliParserArg &other) {
-  type = other.type;
-  shortName = other.shortName;
-  help = other.help;
-  def = other.def;
-  value = other.value;
-  boolValue = other.boolValue;
-  return *this;
-}
index 3927df7..53eaed8 100644 (file)
@@ -36,9 +36,7 @@ public:
   typedef CliArgType CliArgTypes;
   
   inline CliParserArg() {};
   typedef CliArgType CliArgTypes;
   
   inline CliParserArg() {};
-  CliParserArg(const CliParserArg &other);
   CliParserArg(const CliArgType type, const char _shortName = 0, const QString _help = QString(), const QString _def = QString());
   CliParserArg(const CliArgType type, const char _shortName = 0, const QString _help = QString(), const QString _def = QString());
-  CliParserArg &operator=(const CliParserArg &other);
 
   CliArgType type;
   char shortName;
 
   CliArgType type;
   char shortName;