From: Manuel Nickschas Date: Mon, 3 Sep 2018 23:31:22 +0000 (+0200) Subject: clang-tidy: Reorder NetworkMO attributes to avoid excessive padding X-Git-Tag: 0.13-rc2~46 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e7352d23bb54ce36dd4f9aac59a93e2c0a6297f6 clang-tidy: Reorder NetworkMO attributes to avoid excessive padding Use a more optimal attribute order to avoid excessive padding in the NetworkMO struct. --- diff --git a/src/core/abstractsqlstorage.h b/src/core/abstractsqlstorage.h index 5d77cf3a..ffdd89cb 100644 --- a/src/core/abstractsqlstorage.h +++ b/src/core/abstractsqlstorage.h @@ -205,37 +205,35 @@ public: }; struct NetworkMO { - NetworkId networkid; UserId userid; QString networkname; - IdentityId identityid; - QString encodingcodec; - QString decodingcodec; - QString servercodec; - bool userandomserver; QString perform; - bool useautoidentify; QString autoidentifyservice; QString autoidentifypassword; - bool useautoreconnect; + QString saslaccount; + QString saslpassword; + QString servercodec; + QString encodingcodec; + QString decodingcodec; + QString usermode; + QString awaymessage; + QString attachperform; + QString detachperform; + NetworkId networkid; + IdentityId identityid; + int messagerateburstsize; + int messageratedelay; int autoreconnectinterval; int autoreconnectretries; - bool unlimitedconnectretries; bool rejoinchannels; - // Custom rate limiting + bool userandomserver; + bool useautoidentify; + bool usesasl; + bool useautoreconnect; + bool unlimitedconnectretries; bool usecustommessagerate; - int messagerateburstsize; - int messageratedelay; bool unlimitedmessagerate; - // ... bool connected; - QString usermode; - QString awaymessage; - QString attachperform; - QString detachperform; - bool usesasl; - QString saslaccount; - QString saslpassword; }; struct BufferMO {