Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observer can now be extended #34

Merged
merged 4 commits into from
Jan 31, 2018
Merged

Observer can now be extended #34

merged 4 commits into from
Jan 31, 2018

Conversation

igorski
Copy link
Owner

@igorski igorski commented Jan 31, 2018

Ensuring Observer can be extended as an C++ class, also fixing some bugs by observation (punny). Both cases noted by @rckrdstrgrd

@@ -133,3 +133,4 @@ solving of bugs, etc.) from the following developers :
* Koert Gaaikema (@koertgaaikema)
* Matt Logan (@mattlogan)
* Aran Arunakiri
* @rckrdstrgrd
Copy link
Owner Author

Choose a reason for hiding this comment

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

Credit where credit is due :)

void handleNotification( int aNotificationType );
void handleNotification( int aNotificationType, int aValue );
virtual void handleNotification( int aNotificationType );
virtual void handleNotification( int aNotificationType, int aValue );
};
Copy link
Owner Author

Choose a reason for hiding this comment

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

Functions can now be overridden by inheriting classes.

delete aEvent;
aEvent = 0;
delete audioEvent;
audioEvent = 0;
#endif
Copy link
Owner Author

Choose a reason for hiding this comment

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

If you're going to clear memory, do it on properties that actually exist, yo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant