[refactor] replace boost smart ptr with stl (#6856)

1. replace all boost::shared_ptr to std::shared_ptr
2. replace all boost::scopted_ptr to std::unique_ptr
3. replace all boost::scoped_array to std::unique<T[]>
4. replace all boost:thread to std::thread
This commit is contained in:
Zhengguo Yang
2021-11-17 10:18:35 +08:00
committed by GitHub
parent 4bc5ba8819
commit 6c6380969b
383 changed files with 3443 additions and 3396 deletions

View File

@ -58,7 +58,7 @@ Expr* BinaryPredicate::from_thrift(const TExprNode& node) {
case TPrimitiveType::DECIMALV2:
return new EqDecimalV2ValPred(node);
default:
return NULL;
return nullptr;
}
}
case TExprOpcode::NE: {
@ -89,7 +89,7 @@ Expr* BinaryPredicate::from_thrift(const TExprNode& node) {
case TPrimitiveType::DECIMALV2:
return new NeDecimalV2ValPred(node);
default:
return NULL;
return nullptr;
}
}
case TExprOpcode::LT: {
@ -120,7 +120,7 @@ Expr* BinaryPredicate::from_thrift(const TExprNode& node) {
case TPrimitiveType::DECIMALV2:
return new LtDecimalV2ValPred(node);
default:
return NULL;
return nullptr;
}
}
case TExprOpcode::LE: {
@ -151,7 +151,7 @@ Expr* BinaryPredicate::from_thrift(const TExprNode& node) {
case TPrimitiveType::DECIMALV2:
return new LeDecimalV2ValPred(node);
default:
return NULL;
return nullptr;
}
}
case TExprOpcode::GT: {
@ -182,7 +182,7 @@ Expr* BinaryPredicate::from_thrift(const TExprNode& node) {
case TPrimitiveType::DECIMALV2:
return new GtDecimalV2ValPred(node);
default:
return NULL;
return nullptr;
}
}
case TExprOpcode::GE: {
@ -213,7 +213,7 @@ Expr* BinaryPredicate::from_thrift(const TExprNode& node) {
case TPrimitiveType::DECIMALV2:
return new GeDecimalV2ValPred(node);
default:
return NULL;
return nullptr;
}
}
case TExprOpcode::EQ_FOR_NULL: {
@ -244,13 +244,13 @@ Expr* BinaryPredicate::from_thrift(const TExprNode& node) {
case TPrimitiveType::DECIMALV2:
return new EqForNullDecimalV2ValPred(node);
default:
return NULL;
return nullptr;
}
}
default:
return NULL;
return nullptr;
}
return NULL;
return nullptr;
}
std::string BinaryPredicate::debug_string() const {