hongkun-Shao opened a new pull request, #27587:
URL: https://github.com/apache/doris/pull/27587
…r by default
## Proposed changes
<!--Describe your changes.-->
In the source code of the Doris be module, the default initialization of
pointer member variables in the class is not uniform, and there is no default
initialization, {nullptr},=nullptr. So in this large-scale unification,
use=nullptr to set it.
1. Use = nullptr
- T *
- const T *
- T **
- const T **
- shared_ptr<T>
- unique_ptr<T>
2. Don't set default initialization
- T * const
3. Set {nullptr} to = nullptr
4. Unchanged parts
- extern
- null/NULL
- Customized pointers through using, typedef, and other methods
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]