diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-25 00:46:05 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-25 09:47:53 +0200 |
commit | b6fda1b67cac32c1799db5a6115004e6b682a680 (patch) | |
tree | ab2a62f82c56279a7e4f5f91f9c7e89e98d35d0d /sw | |
parent | fec5892741df952ebf97ea745fce3d061c75de34 (diff) |
use make_shared here
Change-Id: I0535517f39508abb3e0b454081e4a64d375ecbc4
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/CntntIdxStore.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index 7b7ba3e364cd..1a2754c9396c 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -22,6 +22,7 @@ #include <boost/bind.hpp> #include <boost/foreach.hpp> #include <boost/function.hpp> +#include <boost/make_shared.hpp> #include <cntfrm.hxx> #include <crossrefbookmark.hxx> #include <annotationmark.hxx> @@ -449,7 +450,7 @@ void CntntIdxStoreImpl::RestoreShellCrsrs(SwDoc* /* pDoc */, updater_t& rUpdater namespace sw { namespace mark { boost::shared_ptr<CntntIdxStore> CntntIdxStore::Create() { - return boost::shared_ptr<CntntIdxStore>(new CntntIdxStoreImpl()); + return boost::make_shared<CntntIdxStoreImpl>(); } }} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |