Skip to content

Commit

Permalink
Template fix + Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoam committed May 4, 2015
1 parent 2521e35 commit b3c658e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Ui/Scheme/mkDockbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ namespace mk

void click();

static StyleType& cls() { static StyleType ty("DockToggle", ImgButton::cls()); return ty; }

protected:
Dockbox& mDockbox;
};
Expand Down
6 changes: 3 additions & 3 deletions src/Ui/Widget/mkInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

namespace mk
{
template <class T_Val, class T_Arg = T_Val, class T_Input = typename Input<T_Val>>
template <class T_Val, class T_Arg = T_Val>
class Field : public Sequence
{
public:
Field(const string& label, const T_Val& value, std::function<void(T_Arg)> callback = nullptr, bool reverse = false)
: Sequence()
, mInput(this->makeappend<T_Input>(value, callback))
, mLabel(this->makeappend<Label>(label))
, mInput(this->template makeappend<typename Input<T_Val>>(value, callback))
, mLabel(this->template makeappend<Label>(label))
{
UNUSED(reverse);
}
Expand Down

0 comments on commit b3c658e

Please sign in to comment.