Skip to content

Commit 8712b76

Browse files
Simplify PersistentWindowSettings
* Remove constructors. * Set defaults in-class.
1 parent df3aa8c commit 8712b76

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

libs/s25main/Settings.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ bool checkPort(int port);
2424

2525
struct PersistentWindowSettings
2626
{
27-
DrawPoint lastPos;
28-
bool isOpen;
29-
30-
PersistentWindowSettings(DrawPoint lastPos, bool isOpen) : lastPos(lastPos), isOpen(isOpen) {}
31-
PersistentWindowSettings() : lastPos(DrawPoint::Invalid()), isOpen(false) {}
27+
DrawPoint lastPos = DrawPoint::Invalid();
28+
bool isOpen = false;
3229
};
3330

3431
/// Configuration class

0 commit comments

Comments
 (0)