[fix][refactor] fix bugs and refactor some code by lint (#7871)

1. Fix some `passedByValue` issues.
2. Fix some `dereferenceBeforeCheck` issues.
3. Fix some `uninitMemberVar` issues.
4. Fix some iterator `eraseDereference` issues.
5. Fix compile issue introduced from #7923 #7905 #7848
This commit is contained in:
Mingyu Chen
2022-02-01 14:31:14 +08:00
committed by GitHub
parent 82f421a019
commit c0e59e59aa
38 changed files with 92 additions and 86 deletions

View File

@ -33,7 +33,7 @@ OdbcScanNode::OdbcScanNode(ObjectPool* pool, const TPlanNode& tnode, const Descr
std::string scan_node_type)
: ScanNode(pool, tnode, descs),
_is_init(false),
_scan_node_type(scan_node_type),
_scan_node_type(std::move(scan_node_type)),
_table_name(tnode.odbc_scan_node.table_name),
_connect_string(std::move(tnode.odbc_scan_node.connect_string)),
_query_string(std::move(tnode.odbc_scan_node.query_string)),