Mark constructors as explicit

This commit is contained in:
Chocobo1 2018-12-16 15:51:36 +08:00
commit 2a84345835
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
16 changed files with 61 additions and 53 deletions

View file

@ -56,14 +56,14 @@ struct QBtCommandLineParameters
QStringList torrents;
QString profileDir, configurationName, savePath, category, unknownParameter;
QBtCommandLineParameters(const QProcessEnvironment&);
explicit QBtCommandLineParameters(const QProcessEnvironment&);
QStringList paramList() const;
};
class CommandLineParameterError : public std::runtime_error
{
public:
CommandLineParameterError(const QString &messageForUser);
explicit CommandLineParameterError(const QString &messageForUser);
const QString &messageForUser() const;
private: