mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-05-09 08:25:44 +02:00
[PR #202] [CLOSED] [apps/shared/interval] Pass parameter by const * #310
Labels
No labels
bug
duplicate
easy
enhancement
enhancement
fixed
fixed
good first issue
hard
invalid
pull-request
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Upsilon#310
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/UpsilonNumworks/Upsilon/pull/202
Author: @Tunas1337
Created: 4/7/2022
Status: ❌ Closed
Base:
upsilon-dev← Head:upsilon-dev-parameter-const📝 Commits (1)
e642483[apps/shared/interval] Pass parameter by const *📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
apps/shared/interval.cpp(+1 -1)📝
apps/shared/interval.h(+2 -2)📄 Description
In apps/shared/interval.{cpp,h}, there are two function calls that have a parameter passed by value. It could be passed as a const reference which is usually faster and recommended in C++.
I have tested this on the calculator and everything seems in order. I'm making this PR to see if it'll change the RAM/flash usage and/or performance; it should theoretically, but I don't know if it will be noticeable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.