group: clang-tidy
This commit is contained in:
		
							parent
							
								
									003dd3a9a2
								
							
						
					
					
						commit
						4efa123183
					
				|  | @ -12,7 +12,7 @@ namespace waybar { | |||
| class Group : public AModule { | ||||
|  public: | ||||
|   Group(const std::string &, const std::string &, const Json::Value &, bool); | ||||
|   virtual ~Group() = default; | ||||
|   ~Group() override = default; | ||||
|   auto update() -> void override; | ||||
|   operator Gtk::Widget &() override; | ||||
| 
 | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ | |||
| 
 | ||||
| namespace waybar { | ||||
| 
 | ||||
| const Gtk::RevealerTransitionType getPreferredTransitionType(bool is_vertical) { | ||||
| Gtk::RevealerTransitionType getPreferredTransitionType(bool is_vertical) { | ||||
|   /* The transition direction of a drawer is not actually determined by the transition type,
 | ||||
|    * but rather by the order of 'box' and 'revealer_box': | ||||
|    *   'REVEALER_TRANSITION_TYPE_SLIDE_LEFT' and 'REVEALER_TRANSITION_TYPE_SLIDE_RIGHT' | ||||
|  | @ -112,7 +112,7 @@ bool Group::handleToggle(GdkEventButton* const& e) { | |||
|   if (!click_to_reveal || e->button != 1) { | ||||
|     return false; | ||||
|   } | ||||
|   if (box.get_state_flags() & Gtk::StateFlags::STATE_FLAG_PRELIGHT) { | ||||
|   if ((box.get_state_flags() & Gtk::StateFlags::STATE_FLAG_PRELIGHT) != 0U) { | ||||
|     hide_group(); | ||||
|   } else { | ||||
|     show_group(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue