Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

[LibOverhaul 04] Initialize all class members #3339

Merged

Conversation

MartinBriza
Copy link
Contributor

@MartinBriza MartinBriza commented Sep 20, 2019

📒 Description

Not explicitely initializing class member variables can lead to undefined behavior. Therefore I added explicit initialization to nullptr to the ones that were not initialized.

🕶️ Types of changes

  • New feature (non-breaking change which adds functionality)

🔎 Review hints

  • Same as with most library overhaul PRs, warnings should disappear and the app should continue to compile and work the same on all platforms.

@MartinBriza MartinBriza changed the title [LibOverhaul 04] Use the prefix increment operator [LibOverhaul 04] Initialize all class members Sep 20, 2019
@MartinBriza MartinBriza force-pushed the fix/library-overhaul/rebased/04-prefix-increment-operator branch from 275cd36 to fdd0b63 Compare September 20, 2019 08:14
@NghiaTranUIT NghiaTranUIT self-requested a review October 1, 2019 06:29
Copy link
Contributor

@NghiaTranUIT NghiaTranUIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this PR branches off from https://github.com/toggl/toggldesktop/pull/3338 and contains 1 new commit toggl@fdd0b63, it's good to go.

However, I don't merge it until we address this problem https://github.com/toggl/toggldesktop/pull/3338#issuecomment-535377952

@MartinBriza MartinBriza force-pushed the fix/library-overhaul/rebased/04-prefix-increment-operator branch from fdd0b63 to 420df8b Compare November 26, 2019 13:18
@MartinBriza
Copy link
Contributor Author

I have just rebased this PR against master and omitted the dependency on #3338.

If the build passes, I'll merge it as per Nghia's review. There's also virtually no chance this would break anything.

@MartinBriza MartinBriza merged commit 6f780d5 into master Nov 26, 2019
@MartinBriza MartinBriza deleted the fix/library-overhaul/rebased/04-prefix-increment-operator branch November 26, 2019 13:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants