add { } to BOOST_FOREACH
This commit is contained in:
parent
01fa3ff298
commit
90502e9792
1 changed files with 4 additions and 2 deletions
|
@ -365,9 +365,10 @@ void manager::init() const
|
|||
std::vector<std::string> files;
|
||||
if(filesystem::is_directory(path))
|
||||
filesystem::get_files_in_dir(path, &files, NULL, filesystem::ENTIRE_FILE_PATH);
|
||||
BOOST_FOREACH(const std::string& file, files)
|
||||
BOOST_FOREACH(const std::string& file, files) {
|
||||
if(file.substr(file.length() - 4) == ".ttf" || file.substr(file.length() - 4) == ".ttc")
|
||||
AddFontResourceA(file.c_str());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -383,9 +384,10 @@ void manager::deinit() const
|
|||
std::vector<std::string> files;
|
||||
if(filesystem::is_directory(path))
|
||||
filesystem::get_files_in_dir(path, &files, NULL, filesystem::ENTIRE_FILE_PATH);
|
||||
BOOST_FOREACH(const std::string& file, files)
|
||||
BOOST_FOREACH(const std::string& file, files) {
|
||||
if(file.substr(file.length() - 4) == ".ttf" || file.substr(file.length() - 4) == ".ttc")
|
||||
RemoveFontResourceA(file.c_str());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue