summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/mmoutputtypepage.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index 660c9ea74384..10db4fe24b85 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -34,6 +34,7 @@
#include <mmresultdialogs.hxx>
#include <maildispatcher.hxx>
#include <imaildsplistener.hxx>
+#include <mutex>
using namespace ::com::sun::star;
@@ -73,7 +74,7 @@ IMPL_LINK_NOARG(SwMailMergeOutputTypePage, TypeHdl_Impl, weld::Toggleable&, void
struct SwSendMailDialog_Impl
{
friend class SwSendMailDialog;
- ::osl::Mutex aDescriptorMutex;
+ std::mutex aDescriptorMutex;
std::vector< SwMailDescriptor > aDescriptors;
sal_uInt32 nCurrentDescriptor;
@@ -103,7 +104,7 @@ struct SwSendMailDialog_Impl
const SwMailDescriptor* SwSendMailDialog_Impl::GetNextDescriptor()
{
- ::osl::MutexGuard aGuard(aDescriptorMutex);
+ std::scoped_lock aGuard(aDescriptorMutex);
if(nCurrentDescriptor < aDescriptors.size())
{
++nCurrentDescriptor;
@@ -267,7 +268,7 @@ SwSendMailDialog::~SwSendMailDialog()
void SwSendMailDialog::AddDocument( SwMailDescriptor const & rDesc )
{
- ::osl::MutexGuard aGuard(m_pImpl->aDescriptorMutex);
+ std::scoped_lock aGuard(m_pImpl->aDescriptorMutex);
m_pImpl->aDescriptors.push_back(rDesc);
// if the dialog is already running then continue sending of documents
if(m_pImpl->xMailDispatcher.is())