reformatted to Mozilla code style

This commit is contained in:
Jeremy Borgman
2020-09-04 20:16:33 -05:00
committed by borgmanJeremy
parent c0e2e48db4
commit c8d15205be
176 changed files with 12695 additions and 11269 deletions

View File

@@ -17,38 +17,46 @@
#include "commandargument.h"
CommandArgument::CommandArgument() {
CommandArgument::CommandArgument() {}
}
CommandArgument::CommandArgument(const QString& name,
const QString& description)
: m_name(name)
, m_description(description)
{}
CommandArgument::CommandArgument(const QString &name,
const QString &description) :
m_name(name), m_description(description)
void
CommandArgument::setName(const QString& name)
{
m_name = name;
}
void CommandArgument::setName(const QString &name) {
m_name = name;
QString
CommandArgument::name() const
{
return m_name;
}
QString CommandArgument::name() const {
return m_name;
void
CommandArgument::setDescription(const QString& description)
{
m_description = description;
}
void CommandArgument::setDescription(const QString &description) {
m_description = description;
QString
CommandArgument::description() const
{
return m_description;
}
QString CommandArgument::description() const {
return m_description;
bool
CommandArgument::isRoot() const
{
return m_name.isEmpty() && m_description.isEmpty();
}
bool CommandArgument::isRoot() const {
return m_name.isEmpty() && m_description.isEmpty();
}
bool CommandArgument::operator ==(const CommandArgument &arg) const {
return m_description == arg.m_description
&& m_name == arg.m_name;
bool
CommandArgument::operator==(const CommandArgument& arg) const
{
return m_description == arg.m_description && m_name == arg.m_name;
}