diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-18 09:09:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-23 11:19:17 +0000 |
commit | 177ea7a2818ee64de3eaa9b587d70fe461468005 (patch) | |
tree | 60d3838c3f7daff05fc94e4bf2d7c83b2c013041 /sd/inc | |
parent | a44e03b5d7822d026a3b2fbaf039522f085defed (diff) |
boost::shared_ptr->std::shared_ptr
Change-Id: I2c6ac98f0984534894759cfbf4449eb554801cf8
Reviewed-on: https://gerrit.libreoffice.org/18678
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 'sd/inc')
-rw-r--r-- | sd/inc/CustomAnimationEffect.hxx | 13 | ||||
-rw-r--r-- | sd/inc/CustomAnimationPreset.hxx | 6 | ||||
-rw-r--r-- | sd/inc/Outliner.hxx | 6 | ||||
-rw-r--r-- | sd/inc/OutlinerIterator.hxx | 8 | ||||
-rw-r--r-- | sd/inc/TransitionPreset.hxx | 4 | ||||
-rw-r--r-- | sd/inc/pch/precompiled_sd.hxx | 5 | ||||
-rw-r--r-- | sd/inc/pch/precompiled_sdui.hxx | 1 | ||||
-rw-r--r-- | sd/inc/sdpage.hxx | 14 | ||||
-rw-r--r-- | sd/inc/stlsheet.hxx | 1 | ||||
-rw-r--r-- | sd/inc/undoanim.hxx | 1 |
10 files changed, 23 insertions, 36 deletions
diff --git a/sd/inc/CustomAnimationEffect.hxx b/sd/inc/CustomAnimationEffect.hxx index c4f892b5f2ed..97f1ccf7c4f9 100644 --- a/sd/inc/CustomAnimationEffect.hxx +++ b/sd/inc/CustomAnimationEffect.hxx @@ -26,14 +26,13 @@ #include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/util/XChangesListener.hpp> -#include <boost/shared_ptr.hpp> - #include <vcl/timer.hxx> #include <sddllapi.h> #include <list> #include <map> +#include <memory> class SdrPathObj; @@ -44,9 +43,9 @@ enum EValue { VALUE_FROM, VALUE_TO, VALUE_BY, VALUE_FIRST, VALUE_LAST }; class CustomAnimationEffect; class CustomAnimationPreset; -typedef boost::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr; +typedef std::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr; -typedef boost::shared_ptr< CustomAnimationEffect > CustomAnimationEffectPtr; +typedef std::shared_ptr< CustomAnimationEffect > CustomAnimationEffectPtr; typedef std::list< CustomAnimationEffectPtr > EffectSequence; @@ -259,7 +258,7 @@ private: sal_Int32 mnGroupId; }; -typedef boost::shared_ptr< CustomAnimationTextGroup > CustomAnimationTextGroupPtr; +typedef std::shared_ptr< CustomAnimationTextGroup > CustomAnimationTextGroupPtr; typedef std::map< sal_Int32, CustomAnimationTextGroupPtr > CustomAnimationTextGroupMap; class SD_DLLPUBLIC EffectSequenceHelper @@ -362,7 +361,7 @@ private: MainSequence* mpMainSequence; }; -typedef boost::shared_ptr< InteractiveSequence > InteractiveSequencePtr; +typedef std::shared_ptr< InteractiveSequence > InteractiveSequencePtr; typedef std::list< InteractiveSequencePtr > InteractiveSequenceList; class MainSequence : public EffectSequenceHelper, public ISequenceListener @@ -435,7 +434,7 @@ protected: sal_Int32 mbIgnoreChanges; }; -typedef boost::shared_ptr< MainSequence > MainSequencePtr; +typedef std::shared_ptr< MainSequence > MainSequencePtr; class MainSequenceRebuildGuard { diff --git a/sd/inc/CustomAnimationPreset.hxx b/sd/inc/CustomAnimationPreset.hxx index 1c447f0b4870..1f7abce5a724 100644 --- a/sd/inc/CustomAnimationPreset.hxx +++ b/sd/inc/CustomAnimationPreset.hxx @@ -22,9 +22,9 @@ #include <sal/config.h> +#include <memory> #include <vector> -#include <boost/shared_ptr.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/animations/AnimationNodeType.hpp> @@ -71,7 +71,7 @@ private: EffectsSubTypeMap maSubTypes; }; -typedef boost::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr; +typedef std::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr; typedef std::unordered_map<OUString, CustomAnimationPresetPtr, OUStringHash> EffectDescriptorMap; typedef std::vector< CustomAnimationPresetPtr > EffectDescriptorList; @@ -83,7 +83,7 @@ struct PresetCategory PresetCategory( const OUString& rLabel, const EffectDescriptorList& rEffects ) : maLabel( rLabel ), maEffects( rEffects ) {} }; -typedef boost::shared_ptr< PresetCategory > PresetCategoryPtr; +typedef std::shared_ptr< PresetCategory > PresetCategoryPtr; typedef std::vector< PresetCategoryPtr > PresetCategoryList; class SD_DLLPUBLIC CustomAnimationPresets diff --git a/sd/inc/Outliner.hxx b/sd/inc/Outliner.hxx index a97d2092ecc5..fda3206e92d2 100644 --- a/sd/inc/Outliner.hxx +++ b/sd/inc/Outliner.hxx @@ -26,8 +26,6 @@ #include "OutlinerIterator.hxx" #include <editeng/SpellPortions.hxx> #include <memory> -#include <boost/shared_ptr.hpp> -#include <boost/weak_ptr.hpp> #include <boost/noncopyable.hpp> class Dialog; @@ -183,7 +181,7 @@ private: pointer to avoid keeping it alive when the view is changed during searching. */ - ::boost::weak_ptr<ViewShell> mpWeakViewShell; + std::weak_ptr<ViewShell> mpWeakViewShell; /// This window contains the view. VclPtr< ::sd::Window> mpWindow; /// The document on whose objects and pages this class operates. @@ -504,7 +502,7 @@ private: It handles i.e. registering at the associated view as selection change listener. */ - void SetViewShell (const ::boost::shared_ptr<ViewShell>& rpViewShell); + void SetViewShell (const std::shared_ptr<ViewShell>& rpViewShell); /** Activate or deactivate the search in the current selection. Call this method whenever the selection has changed. This method creates diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx index 43c47b3a2ffb..6d9b9189d0f2 100644 --- a/sd/inc/OutlinerIterator.hxx +++ b/sd/inc/OutlinerIterator.hxx @@ -24,8 +24,8 @@ #include "pres.hxx" #include "sal/types.h" +#include <memory> #include <vector> -#include <boost/shared_ptr.hpp> class SdDrawDocument; @@ -244,7 +244,7 @@ private: static Iterator CreateSelectionIterator ( const ::std::vector<SdrObjectWeakRef>& rObjectList, SdDrawDocument* pDocument, - const ::boost::shared_ptr<ViewShell>& rpViewShell, + const std::shared_ptr<ViewShell>& rpViewShell, bool bDirectionIsForward=true, IteratorLocation aLocation=BEGIN); @@ -261,7 +261,7 @@ private: */ static Iterator CreateDocumentIterator ( SdDrawDocument* pDocument, - const ::boost::shared_ptr<ViewShell>& rpViewShell, + const std::shared_ptr<ViewShell>& rpViewShell, bool bDirectionIsForward=true, IteratorLocation aLocation=BEGIN); @@ -284,7 +284,7 @@ private: */ static sal_Int32 GetPageIndex ( SdDrawDocument* pDocument, - const ::boost::shared_ptr<ViewShell>& rpViewShell, + const std::shared_ptr<ViewShell>& rpViewShell, PageKind ePageKind, EditMode eEditMode, bool bDirectionIsForward, diff --git a/sd/inc/TransitionPreset.hxx b/sd/inc/TransitionPreset.hxx index 7420fc84c163..7c4054d65fdd 100644 --- a/sd/inc/TransitionPreset.hxx +++ b/sd/inc/TransitionPreset.hxx @@ -20,10 +20,10 @@ #ifndef INCLUDED_SD_INC_TRANSITIONPRESET_HXX #define INCLUDED_SD_INC_TRANSITIONPRESET_HXX -#include <boost/shared_ptr.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <list> +#include <memory> #include <unordered_map> namespace com { namespace sun { namespace star { @@ -36,7 +36,7 @@ class SdPage; namespace sd { class TransitionPreset; -typedef boost::shared_ptr< TransitionPreset > TransitionPresetPtr; +typedef std::shared_ptr< TransitionPreset > TransitionPresetPtr; typedef std::list< TransitionPresetPtr > TransitionPresetList; typedef std::unordered_map< OUString, OUString, OUStringHash > UStringMap; diff --git a/sd/inc/pch/precompiled_sd.hxx b/sd/inc/pch/precompiled_sd.hxx index e8ac76af66d5..05d49c8ec761 100644 --- a/sd/inc/pch/precompiled_sd.hxx +++ b/sd/inc/pch/precompiled_sd.hxx @@ -68,16 +68,11 @@ #include <basic/sbstar.hxx> #include <basic/sbx.hxx> #include <boost/bind.hpp> -#include <boost/enable_shared_from_this.hpp> #include <boost/limits.hpp> -#include <boost/make_shared.hpp> #include <boost/noncopyable.hpp> #include <boost/optional.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <memory> -#include <boost/scoped_ptr.hpp> -#include <boost/shared_ptr.hpp> -#include <boost/weak_ptr.hpp> #include <canvas/canvastools.hxx> #include <canvas/elapsedtime.hxx> #include <com/sun/star/accessibility/AccessibleEventId.hpp> diff --git a/sd/inc/pch/precompiled_sdui.hxx b/sd/inc/pch/precompiled_sdui.hxx index 63f5bd6cd592..10a15b477353 100644 --- a/sd/inc/pch/precompiled_sdui.hxx +++ b/sd/inc/pch/precompiled_sdui.hxx @@ -29,7 +29,6 @@ #include <basic/sbmod.hxx> #include <basic/sbstar.hxx> #include <boost/ptr_container/ptr_vector.hpp> -#include <boost/scoped_ptr.hpp> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XEnumerationAccess.hpp> diff --git a/sd/inc/sdpage.hxx b/sd/inc/sdpage.hxx index 08d49afaab01..bd065a519c3e 100644 --- a/sd/inc/sdpage.hxx +++ b/sd/inc/sdpage.hxx @@ -20,14 +20,13 @@ #ifndef INCLUDED_SD_INC_SDPAGE_HXX #define INCLUDED_SD_INC_SDPAGE_HXX -#include <boost/shared_ptr.hpp> - -#include <functional> #include <com/sun/star/drawing/XDrawPage.hpp> #include <com/sun/star/presentation/FadeEffect.hpp> #include <com/sun/star/office/XAnnotation.hpp> +#include <functional> #include <list> +#include <memory> #include <vector> #include <svx/svdobj.hxx> #include <svx/fmpage.hxx> @@ -59,11 +58,6 @@ namespace sd class MainSequence; } -namespace boost -{ - template<class X> class shared_ptr; -} - namespace sd { struct SD_DLLPUBLIC HeaderFooterSettings @@ -138,7 +132,7 @@ protected: ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > mxAnimationNode; /** a helper class to manipulate effects inside the main sequence */ - boost::shared_ptr< sd::MainSequence > mpMainSequence; + std::shared_ptr< sd::MainSequence > mpMainSequence; virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoPage() SAL_OVERRIDE; @@ -307,7 +301,7 @@ public: void setAnimationNode( ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode ) throw (::com::sun::star::uno::RuntimeException); /// @return a helper class to manipulate effects inside the main sequence - boost::shared_ptr< sd::MainSequence > getMainSequence(); + std::shared_ptr< sd::MainSequence > getMainSequence(); /** quick check if this slide has an animation node. This can be used to have a cost free check if there are no animations ad this slide. diff --git a/sd/inc/stlsheet.hxx b/sd/inc/stlsheet.hxx index 9e05c2e043fc..a9a49d3fbf6c 100644 --- a/sd/inc/stlsheet.hxx +++ b/sd/inc/stlsheet.hxx @@ -37,6 +37,7 @@ #include <editeng/unoipset.hxx> +#include <memory> #include <boost/scoped_ptr.hpp> #include "prlayout.hxx" diff --git a/sd/inc/undoanim.hxx b/sd/inc/undoanim.hxx index d08f64071965..be2eea83eef2 100644 --- a/sd/inc/undoanim.hxx +++ b/sd/inc/undoanim.hxx @@ -23,6 +23,7 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/animations/XAnimationNode.hpp> #include <svx/svdundo.hxx> +#include <memory> #include <boost/scoped_ptr.hpp> #include "sdundo.hxx" |