Skip to content

Commit

Permalink
Remove 'using namespace' from header files
Browse files Browse the repository at this point in the history
  • Loading branch information
antkmsft committed Jan 12, 2024
1 parent 20d9364 commit 9f9ce8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
#include <memory>
#include <string>

using namespace Azure::Data::Tables::Credentials;

namespace Azure { namespace Data { namespace Tables { namespace _detail { namespace Policies {
class SharedKeyLitePolicy final : public Core::Http::Policies::HttpPolicy {
public:
explicit SharedKeyLitePolicy(std::shared_ptr<SharedKeyCredential> credential)
explicit SharedKeyLitePolicy(std::shared_ptr<Credentials::SharedKeyCredential> credential)
: m_credential{std::move(credential)}
{
}
Expand All @@ -39,7 +37,7 @@ namespace Azure { namespace Data { namespace Tables { namespace _detail { namesp
}

std::string GetSignature(const Core::Http::Request& request) const;
std::shared_ptr<SharedKeyCredential> m_credential;
std::shared_ptr<Credentials::SharedKeyCredential> m_credential;
};

}}}}} // namespace Azure::Data::Tables::_detail::Policies
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
#include <memory>
#include <string>

using namespace Azure::Data::Tables::Credentials;

namespace Azure { namespace Data { namespace Tables { namespace _detail { namespace Policies {

class SharedKeyPolicy final : public Core::Http::Policies::HttpPolicy {
public:
explicit SharedKeyPolicy(std::shared_ptr<SharedKeyCredential> credential)
explicit SharedKeyPolicy(std::shared_ptr<Credentials::SharedKeyCredential> credential)
: m_credential{std::move(credential)}
{
}
Expand All @@ -41,7 +39,7 @@ namespace Azure { namespace Data { namespace Tables { namespace _detail { namesp
private:
std::string GetSignature(const Core::Http::Request& request) const;

std::shared_ptr<SharedKeyCredential> m_credential;
std::shared_ptr<Credentials::SharedKeyCredential> m_credential;
};

}}}}} // namespace Azure::Data::Tables::_detail::Policies

0 comments on commit 9f9ce8d

Please sign in to comment.