Address code analysis warnings
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
@@ -65,7 +65,7 @@ namespace eap
|
||||
///
|
||||
/// \param[in] other Configuration to move from
|
||||
///
|
||||
config_method_pap(_Inout_ config_method_pap &&other);
|
||||
config_method_pap(_Inout_ config_method_pap &&other) noexcept;
|
||||
|
||||
///
|
||||
/// Copies configuration
|
||||
@@ -83,7 +83,7 @@ namespace eap
|
||||
///
|
||||
/// \returns Reference to this object
|
||||
///
|
||||
config_method_pap& operator=(_Inout_ config_method_pap &&other);
|
||||
config_method_pap& operator=(_Inout_ config_method_pap &&other) noexcept;
|
||||
|
||||
virtual config* clone() const;
|
||||
|
||||
|
@@ -58,7 +58,7 @@ namespace eap
|
||||
///
|
||||
/// \param[in] other PAP method to move from
|
||||
///
|
||||
method_pap_diameter(_Inout_ method_pap_diameter &&other);
|
||||
method_pap_diameter(_Inout_ method_pap_diameter &&other) noexcept;
|
||||
|
||||
///
|
||||
/// Moves a PAP method
|
||||
@@ -67,7 +67,7 @@ namespace eap
|
||||
///
|
||||
/// \returns Reference to this object
|
||||
///
|
||||
method_pap_diameter& operator=(_Inout_ method_pap_diameter &&other);
|
||||
method_pap_diameter& operator=(_Inout_ method_pap_diameter &&other) noexcept;
|
||||
|
||||
/// \name Session management
|
||||
/// @{
|
||||
@@ -94,8 +94,8 @@ namespace eap
|
||||
/// @}
|
||||
|
||||
virtual void get_result(
|
||||
_In_ EapPeerMethodResultReason reason,
|
||||
_Out_ EapPeerMethodResult *pResult);
|
||||
_In_ EapPeerMethodResultReason reason,
|
||||
_Inout_ EapPeerMethodResult *pResult);
|
||||
|
||||
protected:
|
||||
config_method_pap &m_cfg; ///< Method configuration
|
||||
|
@@ -40,7 +40,7 @@ eap::config_method_pap::config_method_pap(_In_ const config_method_pap &other) :
|
||||
}
|
||||
|
||||
|
||||
eap::config_method_pap::config_method_pap(_Inout_ config_method_pap &&other) :
|
||||
eap::config_method_pap::config_method_pap(_Inout_ config_method_pap &&other) noexcept :
|
||||
config_method_with_cred(std::move(other))
|
||||
{
|
||||
}
|
||||
@@ -55,7 +55,7 @@ eap::config_method_pap& eap::config_method_pap::operator=(_In_ const config_meth
|
||||
}
|
||||
|
||||
|
||||
eap::config_method_pap& eap::config_method_pap::operator=(_Inout_ config_method_pap &&other)
|
||||
eap::config_method_pap& eap::config_method_pap::operator=(_Inout_ config_method_pap &&other) noexcept
|
||||
{
|
||||
if (this != &other)
|
||||
(config_method_with_cred&&)*this = std::move(other);
|
||||
|
@@ -37,7 +37,7 @@ eap::method_pap_diameter::method_pap_diameter(_In_ module &mod, _In_ config_meth
|
||||
}
|
||||
|
||||
|
||||
eap::method_pap_diameter::method_pap_diameter(_Inout_ method_pap_diameter &&other) :
|
||||
eap::method_pap_diameter::method_pap_diameter(_Inout_ method_pap_diameter &&other) noexcept :
|
||||
m_cfg ( other.m_cfg ),
|
||||
m_cred ( other.m_cred ),
|
||||
m_phase (std::move(other.m_phase )),
|
||||
@@ -47,7 +47,7 @@ eap::method_pap_diameter::method_pap_diameter(_Inout_ method_pap_diameter &&othe
|
||||
}
|
||||
|
||||
|
||||
eap::method_pap_diameter& eap::method_pap_diameter::operator=(_Inout_ method_pap_diameter &&other)
|
||||
eap::method_pap_diameter& eap::method_pap_diameter::operator=(_Inout_ method_pap_diameter &&other) noexcept
|
||||
{
|
||||
if (this != std::addressof(other)) {
|
||||
assert(std::addressof(m_cfg ) == std::addressof(other.m_cfg )); // Move method within same configuration only!
|
||||
@@ -122,7 +122,7 @@ void eap::method_pap_diameter::get_response_packet(
|
||||
_In_opt_ DWORD size_max)
|
||||
{
|
||||
if (m_packet_res.size() > size_max)
|
||||
throw invalid_argument(string_printf(__FUNCTION__ " This method does not support packet fragmentation, but the data size is too big to fit in one packet (packet: %u, maximum: %u).", m_packet_res.size(), size_max));
|
||||
throw invalid_argument(string_printf(__FUNCTION__ " This method does not support packet fragmentation, but the data size is too big to fit in one packet (packet: %zu, maximum: %u).", m_packet_res.size(), size_max));
|
||||
|
||||
packet.assign(m_packet_res.begin(), m_packet_res.end());
|
||||
}
|
||||
|
Reference in New Issue
Block a user