diff options
| author | Jan Lingscheid <jan.linscheid@auticon.de> | 2017-10-17 06:31:32 +0000 |
|---|---|---|
| committer | Jan Lingscheid <jan.lingscheid@auticon.de> | 2017-10-17 08:55:01 +0000 |
| commit | e1cb749aab3c773073b1adde1b4cd07b2a6ce93e (patch) | |
| tree | d949d760d817874ccdbef766661643c1f98822f2 /src/ui/tool/multi-path-manipulator.h | |
| parent | Replace boost::scoped_ptr (diff) | |
| download | inkscape-e1cb749aab3c773073b1adde1b4cd07b2a6ce93e.tar.gz inkscape-e1cb749aab3c773073b1adde1b4cd07b2a6ce93e.zip | |
Replace boost::shared_ptr
Replace boost::shared_ptr with C++11 smartpointer and remove the boost/shared_ptr.hpp header.
Diffstat (limited to 'src/ui/tool/multi-path-manipulator.h')
| -rw-r--r-- | src/ui/tool/multi-path-manipulator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/tool/multi-path-manipulator.h b/src/ui/tool/multi-path-manipulator.h index 4f152e0a2..742c6d421 100644 --- a/src/ui/tool/multi-path-manipulator.h +++ b/src/ui/tool/multi-path-manipulator.h @@ -77,8 +77,8 @@ public: sigc::signal<void> signal_coords_changed; /// Emitted whenever the coordinates /// shown in the status bar need updating private: - typedef std::pair<ShapeRecord, boost::shared_ptr<PathManipulator> > MapPair; - typedef std::map<ShapeRecord, boost::shared_ptr<PathManipulator> > MapType; + typedef std::pair<ShapeRecord, std::shared_ptr<PathManipulator> > MapPair; + typedef std::map<ShapeRecord, std::shared_ptr<PathManipulator> > MapType; template <typename R> void invokeForAll(R (PathManipulator::*method)()) { @@ -88,11 +88,11 @@ private: // be a valid iterator and then assign i to it. MapType::iterator next_i = i; ++next_i; - // i->second is a boost::shared_ptr so try to hold on to it so + // i->second is a std::shared_ptr so try to hold on to it so // it won't get freed prematurely by the WriteXML() method or // whatever. See https://bugs.launchpad.net/inkscape/+bug/1617615 // Applicable to empty paths. - boost::shared_ptr<PathManipulator> hold(i->second); + std::shared_ptr<PathManipulator> hold(i->second); ((hold.get())->*method)(); i = next_i; } |
