-
-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add DataObject::UpdateSource() alternative to GetSource()->Update()
Offers a more efficient, more concise alternative to the following common pattern: if (x->GetSource()) { x->GetSource()->Update(); } Calling `DataObject::UpdateSource()` instead is more efficient, because it internally calls `DataObject::GetSource()` just once, instead of twice.
- Loading branch information
1 parent
0b47b7b
commit 11dac9e
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters