[Libreoffice-commits] .: sd/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Mar 9 07:38:39 PST 2011
sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx | 2 +-
sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7c732ce6742d49d914be1ce15d2fe6246f1de2e9
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Mar 9 09:09:03 2011 +0000
cppcheck: this method can be const
diff --git a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx
index 9c0d986..c891878 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx
@@ -107,7 +107,7 @@ void MasterPageDescriptor::SetToken (MasterPageContainer::Token aToken)
-Image MasterPageDescriptor::GetPreview (MasterPageContainer::PreviewSize eSize)
+Image MasterPageDescriptor::GetPreview (MasterPageContainer::PreviewSize eSize) const
{
if (eSize == MasterPageContainer::SMALL)
return maSmallPreview;
diff --git a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx
index f89cc96..0761d49 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx
@@ -78,7 +78,7 @@ public:
@return
The returned preview may be empty.
*/
- Image GetPreview (MasterPageContainer::PreviewSize ePreviewSize);
+ Image GetPreview (MasterPageContainer::PreviewSize ePreviewSize) const;
/** Use the PreviewProvider to get access to a preview of the master
page.
More information about the Libreoffice-commits
mailing list