summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpobject.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-27 14:04:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-28 08:39:35 +0200
commite32c56855b04ef825b720b20220245365eec51fd (patch)
treed497c6fad6e3e7ac39a8bc80fa8e81fc7192f199 /sc/source/core/data/dpobject.cxx
parentb2e8bbeafa35c15d168961de711e4970eb0985cb (diff)
use boost::optional in sc and svgio
instead of using std:unique_ptr to allocate small objects on the heap Change-Id: Ifd309a9bf331910354406b827b89a0363f3b7eda Reviewed-on: https://gerrit.libreoffice.org/51945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/dpobject.cxx')
-rw-r--r--sc/source/core/data/dpobject.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 6d40fa552e30..10d271eff637 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1332,7 +1332,7 @@ public:
bool operator() (const ScDPSaveDimension* pDim) const
{
// Layout name takes precedence.
- const OUString* pLayoutName = pDim->GetLayoutName();
+ const boost::optional<OUString> & pLayoutName = pDim->GetLayoutName();
if (pLayoutName && ScGlobal::pCharClass->uppercase(*pLayoutName) == maName)
return true;