Mark constructors as explicit

This commit is contained in:
Chocobo1
2018-12-16 15:51:36 +08:00
parent 94998b5da0
commit 2a84345835
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: