diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-09 13:51:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-09 19:57:46 +0100 |
commit | 1e56cce16bbe07c6e8e900dd4c4d41b1fcd54614 (patch) | |
tree | 864fa68050481a109fb80a4a310243b139212248 /starmath/inc | |
parent | cccc19ca93a8c09bf657fa44d9d26ea6f697afe5 (diff) |
no need to use unique_ptr for a simple value class
Change-Id: Id83cd16fe3eb815ad419cc331e65fb731161bd30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110635
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/parse.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index 6349dc8c479f..752cde6b23e5 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -93,7 +93,7 @@ class SmParser { OUString m_aBufferString; SmToken m_aCurToken; - std::vector<std::unique_ptr<SmErrorDesc>> m_aErrDescList; + std::vector<SmErrorDesc> m_aErrDescList; int m_nCurError; sal_Int32 m_nBufferIndex, m_nTokenIndex; @@ -194,7 +194,7 @@ public: const SmErrorDesc* NextError(); const SmErrorDesc* PrevError(); - const SmErrorDesc* GetError(); + const SmErrorDesc* GetError() const; const std::set< OUString >& GetUsedSymbols() const { return m_aUsedSymbols; } }; |