aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules/ircv3_batch.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-06 11:25:42 +0000
committerGravatar Sadie Powell2020-02-06 11:25:42 +0000
commit98e4ddfb21d285c8b675788c155bb204822fbd4a (patch)
tree030eb18c989bf3c9e4768a538796e3221ca7934e /include/modules/ircv3_batch.h
parentIn C++11 [io]fstream has std::string constructors; use them. (diff)
Use C++11 inline initialisation for class members.
Diffstat (limited to 'include/modules/ircv3_batch.h')
-rw-r--r--include/modules/ircv3_batch.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/modules/ircv3_batch.h b/include/modules/ircv3_batch.h
index 6f86b5f29..9e64c4fcc 100644
--- a/include/modules/ircv3_batch.h
+++ b/include/modules/ircv3_batch.h
@@ -83,14 +83,14 @@ class IRCv3::Batch::Manager : public DataProvider, public ClientProtocol::Messag
*/
class IRCv3::Batch::Batch
{
- Manager* manager;
+ Manager* manager = nullptr;
const std::string type;
RefTag reftag;
std::string reftagstr;
unsigned int bit;
- BatchInfo* batchinfo;
- ClientProtocol::Message* batchstartmsg;
- ClientProtocol::Message* batchendmsg;
+ BatchInfo* batchinfo = nullptr;
+ ClientProtocol::Message* batchstartmsg = nullptr;
+ ClientProtocol::Message* batchendmsg = nullptr;
void Setup(unsigned int b)
{
@@ -108,10 +108,7 @@ class IRCv3::Batch::Batch
* @param Type Batch type string, used to indicate what kind of grouping the batch does. May be empty.
*/
Batch(const std::string& Type)
- : manager(NULL)
- , type(Type)
- , batchinfo(NULL)
- , batchstartmsg(NULL)
+ : type(Type)
{
}