summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/MasterPageContainer.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 15:37:03 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:40 +0200
commitbaf34a9e44fbd39c3657cabd22d871bc804ab12d (patch)
treecd82a6b15c89f5ae510f2e241b3587f6a294dcb5 /sd/source/ui/sidebar/MasterPageContainer.cxx
parent89fa923a28fb351bb4faad1f69ca94d17f8a5b06 (diff)
loplugin:passstuffbyref in sd
Change-Id: If5a68861451efe025b77f71a20e805b71240b827
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageContainer.cxx')
-rw-r--r--sd/source/ui/sidebar/MasterPageContainer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx
index 993562cc89ff..c4a451fb60c8 100644
--- a/sd/source/ui/sidebar/MasterPageContainer.cxx
+++ b/sd/source/ui/sidebar/MasterPageContainer.cxx
@@ -85,7 +85,7 @@ public:
void AddChangeListener (const Link<MasterPageContainerChangeEvent&,void>& rLink);
void RemoveChangeListener (const Link<MasterPageContainerChangeEvent&,void>& rLink);
void UpdatePreviewSizePixel();
- Size GetPreviewSizePixel (PreviewSize eSize) const;
+ const Size& GetPreviewSizePixel (PreviewSize eSize) const;
bool HasToken (Token aToken) const;
const SharedMasterPageDescriptor GetDescriptor (MasterPageContainer::Token aToken) const;
@@ -606,7 +606,7 @@ void MasterPageContainer::Implementation::UpdatePreviewSizePixel()
}
}
-Size MasterPageContainer::Implementation::GetPreviewSizePixel (PreviewSize eSize) const
+const Size& MasterPageContainer::Implementation::GetPreviewSizePixel (PreviewSize eSize) const
{
if (eSize == SMALL)
return maSmallPreviewSizePixel;