Skip to content

Commit

Permalink
Move using statements inside innermost namespace where they are used.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlion committed Jul 19, 2024
1 parent 83b4013 commit b7eaaa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions components/core/src/clp/regex_utils/ErrorCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
#include <string_view>
#include <system_error>

using std::error_category;
namespace clp::regex_utils {
using std::error_code;

namespace {
using std::error_category;
using std::string;
using std::string_view;

namespace clp::regex_utils {
namespace {
/**
* Class for giving the error codes more detailed string descriptions.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#include "regex_utils/ErrorCode.hpp"
#include "regex_utils/RegexToWildcardTranslatorConfig.hpp"

namespace clp::regex_utils {
using std::error_code;
using std::string;
using std::string_view;

namespace clp::regex_utils {
namespace {
/**
* Class for storing regex translation analysis states, capture group, quantifier information, etc.
Expand Down

0 comments on commit b7eaaa1

Please sign in to comment.