chore: Fix spelling errors and modernize pointer initialization#2631
chore: Fix spelling errors and modernize pointer initialization#2631bigfooted merged 2 commits intosu2code:developfrom
Conversation
This PR improves code quality through two types of fixes: Spelling Corrections (3 fixes): - CConfig.cpp (L6169): "Idenftification fo" → "Identification of" - CConfig.cpp (L6170): "seperate" → "separate" - CGradientSmoothingSolver.hpp (L278): "seperate" → "separate" Code Modernization (1 fix): - CConfig.cpp (L9991-9992): Replace NULL with nullptr for C++11 compliance and better type safety All changes are safe, non-breaking, and improve code quality. Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
|
/label changelog:fix |
|
The merge should go into su2:develop, not su2:master. You can change this at the top of the page when you choose edit next to the title of the PR. |
on the right side of the page you see |
I’m not able or allowed to add labels to this PR on my end. If possible, could you please add the appropriate labels? Thank you! |
OK, thanks, it's sometimes not clear what you can and cannot add as an external contributor. Can you edit the PR and point it to develop instead of master? Thanks! |
Yes i change pr , now it’s point to develop branch |
Proposed Changes
This PR improves code quality through 4 targeted fixes across 2 files:
1. Spelling Corrections (3 fixes)
Common/src/CConfig.cpp:"Idenftification fo"→"Identification of""seperate"→"separate"SU2_CFD/include/solvers/CGradientSmoothingSolver.hpp:"seperate"→"separate"in function documentation2. Code Modernization (1 fix)
Common/src/CConfig.cpp:NULLwithnullptrBefore:
After:
Rationale: Modern C++ (C++11+) recommends
nullptroverNULLfor better type safety and to avoid ambiguity in function overload resolution.Related Work
PR Checklist
pre-commit run --allto format old commits.Impact Summary