From 3d0f3a1a6fdc677507a8274e5882aca26cf98a22 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 16 Aug 2022 10:19:08 +0100 Subject: cid#1509309 Use of 32-bit time_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1509292 Use of 32-bit time_t cid#1509217 Use of 32-bit time_t Change-Id: Icf1b2fa43e706c6d3ff783cf9bcfb5a345b8d50b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138382 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- vcl/unx/generic/dtrans/X11_selection.cxx | 2 +- vcl/unx/generic/dtrans/X11_selection.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/unx/generic') diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index d35b496bf265..175da5308e08 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -1948,7 +1948,7 @@ bool SelectionManager::handleSendPropertyNotify( XPropertyEvent const & rNotify if( it != m_aIncrementals.end() ) { bHandled = true; - int nCurrentTime = time( nullptr ); + time_t nCurrentTime = time( nullptr ); // throw out aborted transfers std::vector< Atom > aTimeouts; for (auto const& incrementalTransfer : it->second) diff --git a/vcl/unx/generic/dtrans/X11_selection.hxx b/vcl/unx/generic/dtrans/X11_selection.hxx index c0ae171c621e..bbfe07e5f6b9 100644 --- a/vcl/unx/generic/dtrans/X11_selection.hxx +++ b/vcl/unx/generic/dtrans/X11_selection.hxx @@ -166,7 +166,7 @@ namespace x11 { Atom m_aProperty; Atom m_aTarget; int m_nFormat; - int m_nTransferStartTime; + time_t m_nTransferStartTime; }; int m_nIncrementalThreshold; @@ -190,7 +190,7 @@ namespace x11 { // m_aNativeTypes contains the corresponding original atom Atom m_aRequestedType; // m_aRequestedType is only valid while WaitingForResponse and WaitingFotData - int m_nLastTimestamp; + time_t m_nLastTimestamp; bool m_bHaveUTF16; Atom m_aUTF8Type; bool m_bHaveCompound; -- cgit