Be explicit when using private for fields and methods in classes. (#2043)

This commit is contained in:
Ahson Khan 2021-04-05 20:05:44 -07:00 committed by GitHub
parent cb39ec302c
commit e3e4451920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -52,16 +52,10 @@ namespace _detail {
* @remark This class is supposed to be able to handle a DateTime that comes over the wire.
*/
class DateTime : public _detail::Clock::time_point {
AZ_CORE_DLLEXPORT static DateTime const SystemClockEpoch;
public:
/**
* @brief Construct a default instance of #Azure::DateTime (00:00:00.0000000 on Janualy
* 1st, 0001).
*/
constexpr DateTime() : time_point() {}
private:
AZ_CORE_DLLEXPORT static DateTime const SystemClockEpoch;
DateTime(
int16_t year,
int8_t month,
@ -90,6 +84,12 @@ private:
std::string ToStringRfc1123() const;
public:
/**
* @brief Construct a default instance of #Azure::DateTime (00:00:00.0000000 on Janualy
* 1st, 0001).
*/
constexpr DateTime() : time_point() {}
/**
* @brief Construct an instance of #Azure::DateTime.
*

View File

@ -323,6 +323,7 @@ namespace Azure { namespace Core { namespace Http { namespace Policies {
* @remark See https://azure.github.io/azure-sdk/general_azurecore.html#telemetry-policy.
*/
class TelemetryPolicy : public HttpPolicy {
private:
std::string const m_telemetryId;
static std::string BuildTelemetryId(