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

src: move const variable in node_file.h to node_file.cc #49688

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

pluris
Copy link
Contributor

@pluris pluris commented Sep 17, 2023

After checking the comments in the reference, it seems that there is no need to define a 'const' variable in the header.

It seems efficient to handle this by defining it as constexpr in the source file so that it can be evaluated at compile time. For this purpose, it would be better to change it to std::string_view rather than handling it as std::string.

Refs: #48325

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Sep 17, 2023
@anonrig anonrig added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Sep 17, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 17, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@anonrig anonrig added the review wanted PRs that need reviews. label Sep 20, 2023
@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 29, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 29, 2023
@nodejs-github-bot nodejs-github-bot merged commit 43500fa into nodejs:main Sep 29, 2023
33 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 43500fa

alexfernandez pushed a commit to alexfernandez/node that referenced this pull request Nov 1, 2023
@pluris pluris deleted the fix/const_variable branch November 8, 2023 02:24
targos pushed a commit that referenced this pull request Nov 11, 2023
debadree25 pushed a commit to debadree25/node that referenced this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. review wanted PRs that need reviews.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants