Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename local variables to avoid shadowing outer function (#1102)
ローカル変数の名前を変更して関数をシャドーイングしないように修正します。 cppcheck 2.10のレポート ``` src/cache.cpp:535:17: style: Local variable 'path_root' shadows outer function [shadowFunction] std::string path_root = CACHE::path_root(); ^ src/cache.cpp:554:17: style: Local variable 'path_img_root' shadows outer function [shadowFunction] std::string path_img_root = CACHE::path_img_root(); ^ src/cache.cpp:584:17: style: Local variable 'path_img_root' shadows outer function [shadowFunction] std::string path_img_root = CACHE::path_img_protect_root(); ^ src/cache.cpp:633:17: style: Local variable 'path_board_root' shadows outer function [shadowFunction] std::string path_board_root = CACHE::path_board_root( url ); ^ src/cache.cpp:656:17: style: Local variable 'path_logroot' shadows outer function [shadowFunction] std::string path_logroot = CACHE::path_logroot(); ^ src/core.cpp:3336:24: style: Local variable 'slot_timeout' shadows outer function [shadowFunction] sigc::slot< bool > slot_timeout = sigc::bind( sigc::mem_fun(*this, &Core::slot_timeout), 0 ); ^ ```
- Loading branch information