diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-11-03 10:59:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-11-03 13:20:44 +0100 |
commit | 487acc0c42984199be603df68f1a6df02849e527 (patch) | |
tree | 9e51989309221bcf52c3fa73162d089643b6f1e1 /ucb | |
parent | 7e23fec4b72a3512b898a84dd07fb89f6a6af25a (diff) |
Silence loplugin:toolslong in ucb/source/ucp/webdav-curl/CurlSession.cxx
...similarly to how it was already done for its
ucb/source/ucp/webdav-neon/NeonSession.cxx cousin
Change-Id: I78124f45d4cb08131ee5d6e8c2606b38407c0668
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124637
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-curl/CurlSession.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx index d075c67132c8..7cab4ca763ee 100644 --- a/ucb/source/ucp/webdav-curl/CurlSession.cxx +++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx @@ -124,7 +124,7 @@ struct CurlOption Type const Tag; union { void const* const pValue; - decltype(0L) const lValue; + long const lValue; curl_off_t const cValue; }; #if 0 @@ -145,8 +145,7 @@ struct CurlOption , pExceptionString(i_pExceptionString) { } - CurlOption(CURLoption const i_Option, decltype(0L) const i_Value, - char const* const i_pExceptionString) + CurlOption(CURLoption const i_Option, long const i_Value, char const* const i_pExceptionString) : Option(i_Option) , Tag(Type::Long) , lValue(i_Value) @@ -206,7 +205,7 @@ public: { rc = curl_easy_setopt(m_pCurl, it.Option, *pp); } - else if (decltype(0L) const * const pLong = ::std::get_if<long>(&it.Value)) + else if (long const * const pLong = ::std::get_if<long>(&it.Value)) { rc = curl_easy_setopt(m_pCurl, it.Option, *pLong); } @@ -264,7 +263,7 @@ public: { rc = curl_easy_setopt(m_pCurl, it.Option, nullptr); } - else if (decltype(0L) const * const pLong = ::std::get_if<long>(&it.Value)) + else if (long const * const pLong = ::std::get_if<long>(&it.Value)) { rc = curl_easy_setopt(m_pCurl, it.Option, 0L); } @@ -699,8 +698,7 @@ CurlSession::CurlSession(uno::Reference<uno::XComponentContext> const& xContext, assert(rc == CURLE_OK); // ANY is always available if (!m_Proxy.aName.isEmpty()) { - rc = curl_easy_setopt(m_pCurl.get(), CURLOPT_PROXYPORT, - static_cast<decltype(0L)>(m_Proxy.nPort)); + rc = curl_easy_setopt(m_pCurl.get(), CURLOPT_PROXYPORT, static_cast<long>(m_Proxy.nPort)); assert(rc == CURLE_OK); OString const utf8Proxy(OUStringToOString(m_Proxy.aName, RTL_TEXTENCODING_UTF8)); rc = curl_easy_setopt(m_pCurl.get(), CURLOPT_PROXY, utf8Proxy.getStr()); |