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

Use references for safety #747

Merged
merged 1 commit into from
Aug 25, 2016
Merged

Conversation

vtronko
Copy link
Member

@vtronko vtronko commented Aug 25, 2016

I am not sure if this can have cornerstones, so I need fresh POV, @MKleusberg

{
// Save pointer to DB object
m_db = db;
Copy link
Member

Choose a reason for hiding this comment

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

Good catch! 👍 This really looks like a super useless assignment!

@MKleusberg MKleusberg merged commit 3ef9491 into sqlitebrowser:master Aug 25, 2016
@MKleusberg
Copy link
Member

Looks good. Thanks a lot for having the patience to clean this all up, @innermous 😃 The only cornerstone I could think of is what we would do when we decide to support multiple database connections in one instance. But even then I don't see why we would need to pass around pointers.

@vtronko
Copy link
Member Author

vtronko commented Aug 26, 2016

@MKleusberg glad to hear that :)

vtronko added a commit that referenced this pull request Dec 29, 2016
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.

2 participants