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

Fix compiler warnings #53

Open
wants to merge 1 commit into
base: streamlabs
Choose a base branch
from

Conversation

mhoyer-streamlabs
Copy link

Type issues, variable initialization, and can't std::move a const

Type issues, variable initialization, and can't std::move a const
@CLAassistant
Copy link

CLAassistant commented Mar 18, 2025

CLA assistant check
All committers have signed the CLA.

@@ -157,15 +157,16 @@ std::vector<ipc::value> ipc::client_win::call_synchronous_helper(const std::stri
const auto total_time = (std::chrono::high_resolution_clock::now() - cd.start);
if (!freeze_flagged && total_time > freeze_timeout) {
freeze_flagged = true;
m_freeze_cb(m_app_state_path, cname + "::" + fname, std::chrono::duration_cast<std::chrono::milliseconds>(total_time).count(), -1);
int64_t ms = std::chrono::duration_cast<std::chrono::milliseconds>(total_time).count();
m_freeze_cb(m_app_state_path, cname + "::" + fname, static_cast<int>(ms), -1);
Copy link

@sandboxcoder sandboxcoder Mar 18, 2025

Choose a reason for hiding this comment

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

(Trivial) I realize this is legacy code but this code is likely creating temporary strings? maybe we could consider like this in the future but perhaps this alternative is less readable I admit.

cname.append("::").append(fname)

Copy link

@sandboxcoder sandboxcoder left a comment

Choose a reason for hiding this comment

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

Looks good too me

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.

4 participants