summaryrefslogtreecommitdiff
path: root/sw/inc/unocrsr.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/unocrsr.hxx')
-rw-r--r--sw/inc/unocrsr.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/unocrsr.hxx b/sw/inc/unocrsr.hxx
index 7f4b27ed1bab..08ca12fb28e7 100644
--- a/sw/inc/unocrsr.hxx
+++ b/sw/inc/unocrsr.hxx
@@ -155,7 +155,7 @@ namespace sw
}
explicit operator bool() const
{ return static_cast<bool>(m_pCursor); }
- void reset(std::shared_ptr<SwUnoCursor> pNew)
+ void reset(const std::shared_ptr<SwUnoCursor>& pNew)
{
if(pNew)
StartListening(pNew->m_aNotifier);