-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NodeTreeBase: Suppress code analysis report about invalid lifetime
`std::string_view`からポインターを取得する箇所でスコープ外の ローカル変数を示すポインターを使用していると指摘されたため 引数を`const char*`と`std::size_t`に分けてメンバー関数に渡すように コードを書き換えてcppcheckのレポートを抑制します。 cppcheck 2.10のレポート ``` src/dbtree/nodetreebase.cpp:2083:31: error: Using object that points to local variable 'str_mail' that is out of scope. [invalidLifetime] (snip) ```
- Loading branch information
Showing
2 changed files
with
20 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters