Units/Frame: cleaned up some redundant logic
These are already set to indeterminate initially in the initializer list.
This commit is contained in:
parent
248eab0267
commit
f3f6a15d90
1 changed files with 3 additions and 9 deletions
|
@ -72,21 +72,15 @@ frame_builder::frame_builder(const config& cfg,const std::string& frame_string)
|
|||
, primary_frame_(boost::logic::indeterminate)
|
||||
, drawing_layer_(cfg[frame_string + "layer"])
|
||||
{
|
||||
if(!cfg.has_attribute(frame_string + "auto_vflip")) {
|
||||
auto_vflip_ = boost::logic::indeterminate;
|
||||
} else {
|
||||
if(cfg.has_attribute(frame_string + "auto_vflip")) {
|
||||
auto_vflip_ = cfg[frame_string + "auto_vflip"].to_bool();
|
||||
}
|
||||
|
||||
if(!cfg.has_attribute(frame_string + "auto_hflip")) {
|
||||
auto_hflip_ = boost::logic::indeterminate;
|
||||
} else {
|
||||
if(cfg.has_attribute(frame_string + "auto_hflip")) {
|
||||
auto_hflip_ = cfg[frame_string + "auto_hflip"].to_bool();
|
||||
}
|
||||
|
||||
if(!cfg.has_attribute(frame_string + "primary")) {
|
||||
primary_frame_ = boost::logic::indeterminate;
|
||||
} else {
|
||||
if(cfg.has_attribute(frame_string + "primary")) {
|
||||
primary_frame_ = cfg[frame_string + "primary"].to_bool();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue