Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Root: Fix function parameter to const references
値渡しではなくconst参照渡しにするべきとcppcheckに指摘されたため メンバ関数の引数を修正します。 cppcheckのレポート ``` src/dbtree/root.h:172:49: performance: Function parameter 'old_root' should be passed by const reference. [passedByValue] const std::string old_root, ^ src/dbtree/root.h:173:49: performance: Function parameter 'old_path_board' should be passed by const reference. [passedByValue] const std::string old_path_board, ^ src/dbtree/root.h:174:49: performance: Function parameter 'new_root' should be passed by const reference. [passedByValue] const std::string new_root, ^ src/dbtree/root.h:175:49: performance: Function parameter 'new_path_board' should be passed by const reference. [passedByValue] const std::string new_path_board ^ src/dbtree/root.h:178:48: performance: Function parameter 'old_root' should be passed by const reference. [passedByValue] void push_movetable( const std::string old_root, ^ src/dbtree/root.h:179:48: performance: Function parameter 'old_path_board' should be passed by const reference. [passedByValue] const std::string old_path_board, ^ src/dbtree/root.h:180:48: performance: Function parameter 'new_root' should be passed by const reference. [passedByValue] const std::string new_root, ^ src/dbtree/root.h:181:48: performance: Function parameter 'new_path_board' should be passed by const reference. [passedByValue] const std::string new_path_board ^ src/dbtree/root.cpp:784:42: performance: Function parameter 'old_root' should be passed by const reference. [passedByValue] const std::string old_root, ^ src/dbtree/root.cpp:785:42: performance: Function parameter 'old_path_board' should be passed by const reference. [passedByValue] const std::string old_path_board, ^ src/dbtree/root.cpp:786:42: performance: Function parameter 'new_root' should be passed by const reference. [passedByValue] const std::string new_root, ^ src/dbtree/root.cpp:787:42: performance: Function parameter 'new_path_board' should be passed by const reference. [passedByValue] const std::string new_path_board ^ src/dbtree/root.cpp:865:46: performance: Function parameter 'old_root' should be passed by const reference. [passedByValue] void Root::push_movetable( const std::string old_root, ^ src/dbtree/root.cpp:866:46: performance: Function parameter 'old_path_board' should be passed by const reference. [passedByValue] const std::string old_path_board, ^ src/dbtree/root.cpp:867:46: performance: Function parameter 'new_root' should be passed by const reference. [passedByValue] const std::string new_root, ^ src/dbtree/root.cpp:868:46: performance: Function parameter 'new_path_board' should be passed by const reference. [passedByValue] const std::string new_path_board ^ ```
- Loading branch information