Cleanup: Depsgraph: Avoid transative includes and type aliases
Instead of the monolothic `depsgraph_type.hh` header that includes most types used in the despgraph, just add includes where they are actually necessary. Also remove the `using` keywords for `std` types. The lack of specificity isn't considered good practice nowadays. Removing unnecessary transitive includes can help improve compile times because the time spent parsing headers decreases. Using the "include what you use" pattern makes futher improvements much easier too, since it the path to further reduce transitive includes becomes much clearer. Pull Request: https://projects.blender.org/blender/blender/pulls/133749
This commit is contained in:
@@ -60,14 +60,14 @@ bool stat_entry_comparator(const StatsEntry &a, const StatsEntry &b)
|
||||
return a.time > b.time;
|
||||
}
|
||||
|
||||
string gnuplotify_id_code(const string &name)
|
||||
std::string gnuplotify_id_code(const std::string &name)
|
||||
{
|
||||
return string("") + name[0] + name[1];
|
||||
return std::string("") + name[0] + name[1];
|
||||
}
|
||||
|
||||
string gnuplotify_name(const string &name)
|
||||
std::string gnuplotify_name(const std::string &name)
|
||||
{
|
||||
string result;
|
||||
std::string result;
|
||||
const int length = name.length();
|
||||
for (int i = 0; i < length; i++) {
|
||||
const char ch = name[i];
|
||||
|
||||
Reference in New Issue
Block a user