summaryrefslogtreecommitdiff
path: root/include/unotools/historyoptions.hxx
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-06-15 20:15:13 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-16 06:47:09 +0000
commita25d1a111150288b066351dfe11f75e5e4f81cfb (patch)
treed1c9e8676cad1421befe3d39f2cfe0fdbd6fe213 /include/unotools/historyoptions.hxx
parent4c8ff754ea25a77476a31aec9a9214c30490f0ad (diff)
tdf#89329: use shared_ptr for pImpl in historyoptions
Change-Id: I0020b7e66fe8e09db9a96127a77c3792afab63a8 Reviewed-on: https://gerrit.libreoffice.org/26324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/unotools/historyoptions.hxx')
-rw-r--r--include/unotools/historyoptions.hxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/unotools/historyoptions.hxx b/include/unotools/historyoptions.hxx
index 4c0d5a75756e..51601db30d99 100644
--- a/include/unotools/historyoptions.hxx
+++ b/include/unotools/historyoptions.hxx
@@ -28,6 +28,7 @@
#include <com/sun/star/beans/PropertyValue.hpp>
#include <rtl/ustring.hxx>
#include <unotools/options.hxx>
+#include <memory>
// The method GetList() returns a list of property values.
// Use follow defines to separate values by names.
@@ -102,17 +103,7 @@ public:
void DeleteItem(EHistoryType eHistory, const OUString& sURL);
private:
-
- /* Attention
-
- Don't initialize these static members in these headers!
- a) Double defined symbols will be detected ...
- b) and unresolved externals exist at linking time.
- Do it in your source only.
- */
-
- static SvtHistoryOptions_Impl* m_pDataContainer;
- static sal_Int32 m_nRefCount;
+ std::shared_ptr<SvtHistoryOptions_Impl> m_pImpl;
};
#endif // INCLUDED_UNOTOOLS_HISTORYOPTIONS_HXX