From 1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 8 Feb 2024 22:35:09 +0100 Subject: C++11: Use default member initializers This patch is not exhaustive. --- src/client.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index fbfcabf8..09233a5c 100644 --- a/src/client.h +++ b/src/client.h @@ -129,20 +129,11 @@ public: */ struct Options { - Options(): - printHelp(false), - printVersion(false), - skipUpdate(false), - chooseDefault(false), - noOpenGL(false), - serverPort(0) - {} - - bool printHelp; - bool printVersion; - bool skipUpdate; - bool chooseDefault; - bool noOpenGL; + bool printHelp = false; + bool printVersion = false; + bool skipUpdate = false; + bool chooseDefault = false; + bool noOpenGL = false; std::string username; std::string password; std::string character; @@ -155,7 +146,7 @@ public: std::string screenshotDir; std::string serverName; - short serverPort; + short serverPort = 0; }; Client(const Options &options); -- cgit v1.2.3-60-g2f50