summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-07-14 14:56:48 +0300
committerbabenko <[email protected]>2026-07-14 15:23:02 +0300
commit7345b02420840f2d87ea34981cc4b47816d4bbcc (patch)
tree199da68454b76a5172e03c5e092c0911b06d4a37
parent438b476538f72e574ce736de20bc5f2dc4360a8d (diff)
YT-18571: Drop `using namespace` from yt/yt headers
commit_hash:0e2e03f08b2e7563685cc13ec18e5e7102d9386c
-rw-r--r--yt/yt/client/api/rpc_proxy/helpers.cpp2
-rw-r--r--yt/yt/library/re2/re2.h6
2 files changed, 3 insertions, 5 deletions
diff --git a/yt/yt/client/api/rpc_proxy/helpers.cpp b/yt/yt/client/api/rpc_proxy/helpers.cpp
index fa22b4c2aff..eb699b3a86c 100644
--- a/yt/yt/client/api/rpc_proxy/helpers.cpp
+++ b/yt/yt/client/api/rpc_proxy/helpers.cpp
@@ -2745,7 +2745,7 @@ void SortByRegexes(std::vector<std::string>& values, const std::vector<NRe2::TRe
{
auto valueToRank = [&] (const std::string& value) -> size_t {
for (size_t index = 0; index < regexes.size(); ++index) {
- if (NRe2::TRe2::FullMatch(NRe2::StringPiece(value), *regexes[index])) {
+ if (NRe2::TRe2::FullMatch(re2::StringPiece(value), *regexes[index])) {
return index;
}
}
diff --git a/yt/yt/library/re2/re2.h b/yt/yt/library/re2/re2.h
index d540dfdd4fc..710eedde68f 100644
--- a/yt/yt/library/re2/re2.h
+++ b/yt/yt/library/re2/re2.h
@@ -10,8 +10,6 @@
namespace NYT::NRe2 {
-using namespace re2;
-
////////////////////////////////////////////////////////////////////////////////
// We create a ref-counted version of re2 to deal with an issue of regular re2::RE2
@@ -20,10 +18,10 @@ using namespace re2;
//! Ref-counted version of re2::RE2.
class TRe2
- : public RE2
+ : public re2::RE2
, public TRefCounted
{
- using RE2::RE2;
+ using re2::RE2::RE2;
};
DEFINE_REFCOUNTED_TYPE(TRe2)