[Libreoffice-commits] core.git: chart2/source
Stephan Bergmann
sbergman at redhat.com
Sun May 25 12:47:34 PDT 2014
chart2/source/view/inc/3DChartObjects.hxx | 4 ++--
chart2/source/view/main/3DChartObjects.cxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit c31f50f63872ccb1527dd661670cc7ab01fd6021
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun May 25 21:46:32 2014 +0200
loplugin:passstuffbyref
Change-Id: Ie6d413862a402a779032241c7456b14653a7489f
diff --git a/chart2/source/view/inc/3DChartObjects.hxx b/chart2/source/view/inc/3DChartObjects.hxx
index 1530dfc..acc3bf4 100644
--- a/chart2/source/view/inc/3DChartObjects.hxx
+++ b/chart2/source/view/inc/3DChartObjects.hxx
@@ -23,9 +23,9 @@ namespace opengl3D {
class TextCache
{
public:
- const BitmapEx& getText(OUString rText);
+ const BitmapEx& getText(OUString const & rText);
private:
- typedef boost::ptr_map<OUString, BitmapEx> TextCacheType;
+ typedef boost::ptr_map<OUString const, BitmapEx> TextCacheType;
TextCacheType maTextCache;
};
diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx
index 3432bac..ce959f3 100644
--- a/chart2/source/view/main/3DChartObjects.cxx
+++ b/chart2/source/view/main/3DChartObjects.cxx
@@ -68,7 +68,7 @@ void Line::setLineColor(const Color& rColor)
maLineColor = rColor;
}
-const BitmapEx& TextCache::getText(OUString rText)
+const BitmapEx& TextCache::getText(OUString const & rText)
{
TextCacheType::const_iterator itr = maTextCache.find(rText);
if(itr != maTextCache.end())
More information about the Libreoffice-commits
mailing list