summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentSettingAccess.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-04 15:05:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-06 09:28:10 +0200
commit12a3f5cefeaeb842507dd8038597fb77ca929dd1 (patch)
treec1d496a275fceb1b2fda406f13acca71d9e6947a /sw/inc/IDocumentSettingAccess.hxx
parentab9b38a4064141705aa3a3de9a5d73b465ad3af3 (diff)
rework as a shared_ptr
mostly to try and track down a crash on exit of sw uwriter under windows Change-Id: Id67e93863056da319dd8225038d60a7f5783b103 Reviewed-on: https://gerrit.libreoffice.org/39604 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/IDocumentSettingAccess.hxx')
-rw-r--r--sw/inc/IDocumentSettingAccess.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/IDocumentSettingAccess.hxx b/sw/inc/IDocumentSettingAccess.hxx
index 7822215057d7..00d4c44df041 100644
--- a/sw/inc/IDocumentSettingAccess.hxx
+++ b/sw/inc/IDocumentSettingAccess.hxx
@@ -21,9 +21,9 @@
#define INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX
#include <tools/solar.h>
-#include <rtl/ref.hxx>
#include <fldupde.hxx>
#include <i18nlangtag/lang.h>
+#include <memory>
class SvxForbiddenCharactersTable;
namespace com { namespace sun { namespace star { namespace i18n { struct ForbiddenCharacters; } } } }
@@ -155,14 +155,14 @@ enum class DocumentSettingId
@returns
the forbidden characters table.
*/
- virtual rtl::Reference<SvxForbiddenCharactersTable>& getForbiddenCharacterTable() = 0;
+ virtual std::shared_ptr<SvxForbiddenCharactersTable>& getForbiddenCharacterTable() = 0;
/** Get the forbidden character table.
@returns
the forbidden characters table.
*/
- virtual const rtl::Reference<SvxForbiddenCharactersTable>& getForbiddenCharacterTable() const = 0;
+ virtual const std::shared_ptr<SvxForbiddenCharactersTable>& getForbiddenCharacterTable() const = 0;
/** Get the current link update mode.