summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-12-22 12:00:49 +0900
committerKohei Yoshida <libreoffice@kohei.us>2015-12-31 17:43:25 +0000
commiteb65936f1996cc37632f7241cf07fc85ff633049 (patch)
tree55f1e531287229230a87bcdd553e1b0d4b3f4ea2 /starmath/inc
parent054b25c9ce96eb50d80177cb48cd9b10513806c3 (diff)
starmath: Manage SmDocShell's pCursor via std::unique_ptr
Change-Id: Id9c67638e5c2e535cc06e9566c9a169471f55da8 Reviewed-on: https://gerrit.libreoffice.org/20856 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/document.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 67ef680e79c6..2cda3759af52 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -32,6 +32,7 @@
#include <oox/core/filterbase.hxx>
#include <oox/mathml/import.hxx>
+#include <memory>
#include <set>
#include "format.hxx"
@@ -102,7 +103,7 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
VclPtr<Printer> pTmpPrinter; //ditto
sal_uInt16 nModifyCount;
bool bIsFormulaArranged;
- SmCursor *pCursor;
+ std::unique_ptr<SmCursor> pCursor;
std::set< OUString > aUsedSymbols; // to export used symbols only when saving
@@ -219,7 +220,7 @@ public:
/** True, if cursor have previously been requested and thus
* has some sort of position.
*/
- bool HasCursor() { return pCursor != nullptr; }
+ bool HasCursor();
};
#endif