From: Sebastian Goth Date: Tue, 15 Jul 2008 10:27:32 +0000 (+0200) Subject: Remove unneeded but error-prone copy ctor and assignment operator X-Git-Tag: 0.3.0~263 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=b4226543fdbc7a44288986365e6b598d35144062 Remove unneeded but error-prone copy ctor and assignment operator --- diff --git a/src/common/cliparser.cpp b/src/common/cliparser.cpp index 8b1b559e..8829d066 100644 --- a/src/common/cliparser.cpp +++ b/src/common/cliparser.cpp @@ -191,22 +191,3 @@ CliParserArg::CliParserArg(const CliArgType _type, const char _shortName, const 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; -} diff --git a/src/common/cliparser.h b/src/common/cliparser.h index 3927df7e..53eaed84 100644 --- a/src/common/cliparser.h +++ b/src/common/cliparser.h @@ -36,9 +36,7 @@ public: 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 &operator=(const CliParserArg &other); CliArgType type; char shortName;