Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
This commit is contained in:
1 parent
666f65bf3a
commit
40f6b554b5
138 files changed
+1500
-1500
No files matched your search
+4
-4
@@ -11,12 +11,12 @@
|
||||
|
||||
class Documents
|
||||
{
|
||||
int closeDocumentIndex{-1};
|
||||
std::vector<uint64_t> pendingDocumentTabIds{};
|
||||
PopupHelper closePopup{PopupHelper(LABEL_DOCUMENT_CLOSE, POPUP_TO_CONTENT)};
|
||||
int closeDocumentIndex = -1;
|
||||
std::vector<uint64_t> pendingDocumentTabIds;
|
||||
PopupHelper closePopup = PopupHelper(LABEL_DOCUMENT_CLOSE, POPUP_TO_CONTENT);
|
||||
|
||||
public:
|
||||
float height{};
|
||||
float height = 0;
|
||||
|
||||
void pending_document_order_apply(Manager&);
|
||||
void update(Taskbar&, Manager&, Settings&, Resources&, bool&);
|
||||
|
||||
Reference in new issue
Block a user