This refactor is required for #28052 and #28451
Thus, split it out.
GetType() is only called in tests, so it is unused and can be removed.
While touching all constructors in the previous commit, the class name
can be adjusted to comply with the style guide.
-BEGIN VERIFY SCRIPT-
sed -i 's/CBufferedFile/BufferedFile/g' $( git grep -l CBufferedFile )
-END VERIFY SCRIPT-
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | TheCharlatan, ajtowns |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
576@@ -577,7 +577,7 @@ class CAutoFile : public AutoFile
577 * Will automatically close the file when it goes out of scope if not null.
578 * If you need to close the file early, use file.fclose() instead of fclose(file).
579 */
580-class CBufferedFile
CAutoFile too?
CAutoFile can not be renamed to AutoFile, because CAutoFile is a derived class of AutoFile.
Also, renaming CAutoFile does not make sense, because it will be removed in the future.