Kaydet (Commit) 0cd0206f authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) David Tardon

use std::unique_ptr<> to clarify ownership

This also prepends the m prefix to member variables.

Change-Id: I465173a6b11717c42800a89fd481b3d310a9df24
Reviewed-on: https://gerrit.libreoffice.org/15476Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst a1a25f4c
......@@ -11,6 +11,7 @@
#include "node.hxx"
#include "caret.hxx"
#include <memory>
/** Base class for visitors that visits a tree of SmNodes
* @remarks all methods have been left abstract to ensure that implementers
......@@ -319,13 +320,11 @@ public:
void Visit( SmVerticalBraceNode* pNode ) SAL_OVERRIDE;
SmCaretPosGraph* takeGraph()
{
SmCaretPosGraph *pRet = pGraph;
pGraph = 0;
return pRet;
return mpGraph.release();
}
private:
SmCaretPosGraphEntry* pRightMost;
SmCaretPosGraph* pGraph;
SmCaretPosGraphEntry* mpRightMost;
std::unique_ptr<SmCaretPosGraph> mpGraph;
};
// SmCloningVisitor
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment