Activate some clang-tidy checks (#1884)
This commit is contained in:
1 parent
eb9bd69405
commit
360effcb72
109 files changed
+458
-422
No files matched your search
@@ -13,8 +13,8 @@ void HttpRequestComponent::dump_config() {
|
||||
}
|
||||
|
||||
void HttpRequestComponent::set_url(std::string url) {
|
||||
this->url_ = url;
|
||||
this->secure_ = url.compare(0, 6, "https:") == 0;
|
||||
this->url_ = std::move(url);
|
||||
this->secure_ = this->url_.compare(0, 6, "https:") == 0;
|
||||
|
||||
if (!this->last_url_.empty() && this->url_ != this->last_url_) {
|
||||
// Close connection if url has been changed
|
||||
|
||||
Reference in new issue
Block a user