Skip to content

Commit 86d9a03

Browse files
committed
minor code improvement
1 parent e1141be commit 86d9a03

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cppproperties/qt_widgets/boolean.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace tct::properties::qt_widgets
1515
Q_DISABLE_COPY_MOVE(boolean)
1616

1717
public:
18+
explicit
1819
boolean(tct::properties::property<type>& p) :
1920
widget_base(p)
2021
{
@@ -25,7 +26,7 @@ namespace tct::properties::qt_widgets
2526
});
2627
}
2728

28-
~boolean() = default;
29+
~boolean() override = default;
2930
};
3031

3132
}

cppproperties/qt_widgets/integer.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace tct::properties::qt_widgets
1515
Q_DISABLE_COPY_MOVE(integer)
1616

1717
public:
18+
explicit
1819
integer(tct::properties::property<type>& p) :
1920
widget_base(p)
2021
{
@@ -25,7 +26,7 @@ namespace tct::properties::qt_widgets
2526
});
2627
}
2728

28-
~integer() = default;
29+
~integer() override = default;
2930
};
3031

3132
}

0 commit comments

Comments
 (0)