CustomToolChain: use default copy constructor and remove unused constructor

This copies over the parser, c++11 flags, etc. that were missed in the
existing implementation.

Change-Id: Icbff37b943bb02bf71cdeb1cf01245d9f6e62688
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-07-09 11:30:01 +02:00
parent 8beeb6c870
commit a75b97e702
2 changed files with 1 additions and 15 deletions

View File

@@ -82,19 +82,6 @@ CustomToolChain::CustomToolChain(Detection d) :
m_outputParser(Gcc) m_outputParser(Gcc)
{ } { }
CustomToolChain::CustomToolChain(const QByteArray &id, Detection d) :
ToolChain(id, d)
{ }
CustomToolChain::CustomToolChain(const CustomToolChain &tc) :
ToolChain(tc),
m_compilerCommand(tc.m_compilerCommand),
m_makeCommand(tc.m_makeCommand),
m_targetAbi(tc.m_targetAbi),
m_predefinedMacros(tc.m_predefinedMacros),
m_systemHeaderPaths(tc.m_systemHeaderPaths)
{ }
QString CustomToolChain::type() const QString CustomToolChain::type() const
{ {
return QLatin1String("custom"); return QLatin1String("custom");

View File

@@ -124,8 +124,7 @@ public:
static QString parserName(OutputParser parser); static QString parserName(OutputParser parser);
protected: protected:
explicit CustomToolChain(const QByteArray &id, Detection d); CustomToolChain(const CustomToolChain &) = default;
CustomToolChain(const CustomToolChain &);
private: private:
explicit CustomToolChain(Detection d); explicit CustomToolChain(Detection d);