Commit d80ac51e authored by Francis Dupont's avatar Francis Dupont
Browse files

[4095] reindent

parent bb4d313b
...@@ -20,9 +20,10 @@ namespace dhcp { ...@@ -20,9 +20,10 @@ namespace dhcp {
//********** ClientClassDef ******************// //********** ClientClassDef ******************//
ClientClassDef::ClientClassDef(const std::string& name, ClientClassDef::ClientClassDef(const std::string& name,
const ExpressionPtr& match_expr, const ExpressionPtr& match_expr,
const OptionCollectionPtr& options) const OptionCollectionPtr& options)
: name_(name), match_expr_(match_expr), options_(options) { : name_(name), match_expr_(match_expr), options_(options) {
// Name can't be blank // Name can't be blank
if (name_.empty()) { if (name_.empty()) {
isc_throw(BadValue, "ClientClassDef name cannot be empty"); isc_throw(BadValue, "ClientClassDef name cannot be empty");
...@@ -45,7 +46,7 @@ ClientClassDef::getName() const { ...@@ -45,7 +46,7 @@ ClientClassDef::getName() const {
void void
ClientClassDef::setName(const std::string& name) { ClientClassDef::setName(const std::string& name) {
name_ = name; name_ = name;
} }
const ExpressionPtr& const ExpressionPtr&
...@@ -55,7 +56,7 @@ ClientClassDef::getMatchExpr() const { ...@@ -55,7 +56,7 @@ ClientClassDef::getMatchExpr() const {
void void
ClientClassDef::setMatchExpr(const ExpressionPtr& match_expr) { ClientClassDef::setMatchExpr(const ExpressionPtr& match_expr) {
match_expr_ = match_expr; match_expr_ = match_expr;
} }
const OptionCollectionPtr& const OptionCollectionPtr&
...@@ -96,8 +97,8 @@ ClientClassDictionary::~ClientClassDictionary() { ...@@ -96,8 +97,8 @@ ClientClassDictionary::~ClientClassDictionary() {
void void
ClientClassDictionary::addClass(const std::string& name, ClientClassDictionary::addClass(const std::string& name,
const ExpressionPtr& match_expr, const ExpressionPtr& match_expr,
const OptionCollectionPtr& options) { const OptionCollectionPtr& options) {
ClientClassDefPtr cclass(new ClientClassDef(name, match_expr, options)); ClientClassDefPtr cclass(new ClientClassDef(name, match_expr, options));
addClass(cclass); addClass(cclass);
} }
...@@ -114,7 +115,7 @@ ClientClassDictionary::addClass(ClientClassDefPtr& class_def) { ...@@ -114,7 +115,7 @@ ClientClassDictionary::addClass(ClientClassDefPtr& class_def) {
<< class_def->getName() << " has already been defined"); << class_def->getName() << " has already been defined");
} }
(*classes_)[class_def->getName()] = class_def; (*classes_)[class_def->getName()] = class_def;
} }
ClientClassDefPtr ClientClassDefPtr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment