mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T545 Removed redundant constructors that are now inherited.
This commit is contained in:
@@ -17,10 +17,6 @@ namespace BlackMisc
|
||||
CRawFsdMessageList::CRawFsdMessageList(const CSequence &other) : CSequence<CRawFsdMessage>(other)
|
||||
{ }
|
||||
|
||||
CRawFsdMessageList::CRawFsdMessageList(std::initializer_list<CRawFsdMessage> il) :
|
||||
CSequence<CRawFsdMessage>(il)
|
||||
{ }
|
||||
|
||||
CRawFsdMessageList CRawFsdMessageList::findByPacketType(const QString &type) const
|
||||
{
|
||||
return this->findBy([ & ](const CRawFsdMessage &rawFsdMessage)
|
||||
|
||||
@@ -41,9 +41,6 @@ namespace BlackMisc
|
||||
//! Construct from a base class object.
|
||||
CRawFsdMessageList(const CSequence &other);
|
||||
|
||||
//! Construct from initializer list.
|
||||
CRawFsdMessageList(std::initializer_list<CRawFsdMessage> il);
|
||||
|
||||
//! Find by a given list of raw messages which are type
|
||||
CRawFsdMessageList findByPacketType(const QString &type) const;
|
||||
|
||||
|
||||
@@ -24,11 +24,6 @@ namespace BlackMisc
|
||||
CSequence<CRemoteFile>(other)
|
||||
{ }
|
||||
|
||||
CRemoteFileList::CRemoteFileList(const CRemoteFile &remoteFile)
|
||||
{
|
||||
this->push_back(remoteFile);
|
||||
}
|
||||
|
||||
QStringList CRemoteFileList::getNames(bool sorted) const
|
||||
{
|
||||
QStringList fileNames;
|
||||
|
||||
@@ -41,9 +41,6 @@ namespace BlackMisc
|
||||
//! Construct from a base class object.
|
||||
CRemoteFileList(const CSequence<CRemoteFile> &other);
|
||||
|
||||
//! From single file
|
||||
CRemoteFileList(const CRemoteFile &remoteFile);
|
||||
|
||||
//! All file names
|
||||
QStringList getNames(bool sorted = true) const;
|
||||
|
||||
|
||||
@@ -129,12 +129,8 @@ namespace BlackMisc
|
||||
CUrlList(listOfUrls), m_maxTrials(maxTrials)
|
||||
{ }
|
||||
|
||||
CFailoverUrlList::CFailoverUrlList(const CSequence<CUrl> &other, int maxTrials) :
|
||||
CUrlList(other), m_maxTrials(maxTrials)
|
||||
{ }
|
||||
|
||||
CFailoverUrlList::CFailoverUrlList(const CUrlList &urlIst) :
|
||||
CUrlList(urlIst)
|
||||
CFailoverUrlList::CFailoverUrlList(const CUrlList &urlIst, int maxTrials) :
|
||||
CUrlList(urlIst), m_maxTrials(maxTrials)
|
||||
{ }
|
||||
|
||||
CUrlList CFailoverUrlList::getWithoutFailed() const
|
||||
|
||||
@@ -78,11 +78,8 @@ namespace BlackMisc
|
||||
//! By list of URLs
|
||||
explicit CFailoverUrlList(const QStringList &listOfUrls, int maxTrials = 2);
|
||||
|
||||
//! Construct from a base class object.
|
||||
CFailoverUrlList(const CSequence<CUrl> &other, int maxTrials = 2);
|
||||
|
||||
//! From url list
|
||||
CFailoverUrlList(const CUrlList &urlIst);
|
||||
CFailoverUrlList(const CUrlList &urlIst, int maxTrials = 2);
|
||||
|
||||
//! All failed URLs
|
||||
const CUrlList &getFailedUrls() const { return m_failedUrls; }
|
||||
|
||||
Reference in New Issue
Block a user