diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-15 09:19:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-15 07:49:37 +0000 |
commit | 2b68e03348b3b4009e8bb2af7979de36bd3450c5 (patch) | |
tree | ea337632ae63bc8c19cdb1b72feedbce8302433a /chart2/source | |
parent | 3093732c17d14b0e6eb67868c514448f13bc66d0 (diff) |
tdf#100782 have XPropertyList hold unique_ptr
Change-Id: I928f297e1be76b965898d83cb3dd2e79b23b7974
Reviewed-on: https://gerrit.libreoffice.org/28095
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/DrawCommandDispatch.cxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/sidebar/ChartAreaPanel.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx index 41b0f8993147..fc6e3bb2e123 100644 --- a/chart2/source/controller/main/DrawCommandDispatch.cxx +++ b/chart2/source/controller/main/DrawCommandDispatch.cxx @@ -97,7 +97,7 @@ bool DrawCommandDispatch::isFeatureSupported( const OUString& rCommandURL ) long nCount = pLineEndList->Count(); for ( long nIndex = 0; nIndex < nCount; ++nIndex ) { - XLineEndEntry* pEntry = pLineEndList->GetLineEnd( nIndex ); + const XLineEndEntry* pEntry = pLineEndList->GetLineEnd(nIndex); if ( pEntry->GetName() == aName ) { aReturn = pEntry->GetLineEnd(); diff --git a/chart2/source/controller/sidebar/ChartAreaPanel.cxx b/chart2/source/controller/sidebar/ChartAreaPanel.cxx index 85c9ec26f79c..d8612e542ba2 100644 --- a/chart2/source/controller/sidebar/ChartAreaPanel.cxx +++ b/chart2/source/controller/sidebar/ChartAreaPanel.cxx @@ -107,7 +107,7 @@ XGradient getXGradientForName(const css::uno::Reference<css::frame::XModel>& xMo size_t n = aRef->Count(); for (size_t i = 0; i < n; ++i) { - XGradientEntry* pGradient = aRef->GetGradient(i); + const XGradientEntry* pGradient = aRef->GetGradient(i); if (!pGradient) continue; @@ -155,7 +155,7 @@ XHatch getXHatchFromName(const css::uno::Reference<css::frame::XModel>& xModel, size_t n = aRef->Count(); for (size_t i = 0; i < n; ++i) { - XHatchEntry* pHatch = aRef->GetHatch(i); + const XHatchEntry* pHatch = aRef->GetHatch(i); if (!pHatch) continue; @@ -185,7 +185,7 @@ GraphicObject getXBitmapFromName(const css::uno::Reference<css::frame::XModel>& size_t n = aRef->Count(); for (size_t i = 0; i < n; ++i) { - XBitmapEntry* pBitmap = aRef->GetBitmap(i); + const XBitmapEntry* pBitmap = aRef->GetBitmap(i); if (!pBitmap) continue; |