Skip to content

Commit 13fc469

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
Fix CQS signal. Id] 81490333 -- performance-faster-string-find in fbcode/proxygen/lib/utils
Reviewed By: hanidamlaj Differential Revision: D74476798 fbshipit-source-id: cdc6514abf2ef6b53e6e5542b5904dc5e7909f9a
1 parent b5350ff commit 13fc469

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proxygen/lib/utils/ParseURL.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ void ParseURL::parseNonFully(bool strict) noexcept {
202202
}
203203

204204
bool ParseURL::parseAuthority() noexcept {
205-
auto left = authority_.find("[");
206-
auto right = authority_.find("]");
205+
auto left = authority_.find('[');
206+
auto right = authority_.find(']');
207207

208-
auto pos = authority_.find(":", right != std::string::npos ? right : 0);
208+
auto pos = authority_.find(':', right != std::string::npos ? right : 0);
209209
if (pos != std::string::npos) {
210210
try {
211211
port_ = folly::to<uint16_t>(

0 commit comments

Comments
 (0)