summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-08 10:47:35 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-08 10:47:35 +0200
commitd3a0593ee14d77a311bd4f83c2de53ffb1eb07ae (patch)
tree4475c6e492c8e386bfbdcd6dee620c524cc82d49 /sd/source/ui/annotations
parente8f7f4c38326d7113df2ad898ff864f480336341 (diff)
Some cppcheck cleaning
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx2
-rw-r--r--sd/source/ui/annotations/annotationwindow.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
index 3feda9f2d4a0..787b04e9fd93 100644
--- a/sd/source/ui/annotations/annotationwindow.cxx
+++ b/sd/source/ui/annotations/annotationwindow.cxx
@@ -481,7 +481,7 @@ void AnnotationWindow::ResizeIfNeccessary(long aOldHeight, long aNewHeight)
}
}
-void AnnotationWindow::SetLanguage(const SvxLanguageItem aNewItem)
+void AnnotationWindow::SetLanguage(const SvxLanguageItem &aNewItem)
{
Engine()->SetModifyHdl( Link() );
ESelection aOld = getView()->GetSelection();
diff --git a/sd/source/ui/annotations/annotationwindow.hxx b/sd/source/ui/annotations/annotationwindow.hxx
index 752e5c967e5b..fd88486912ff 100644
--- a/sd/source/ui/annotations/annotationwindow.hxx
+++ b/sd/source/ui/annotations/annotationwindow.hxx
@@ -149,7 +149,7 @@ class AnnotationWindow : public FloatingWindow
bool IsProtected() { return mbProtected; }
- void SetLanguage(const SvxLanguageItem aNewItem);
+ void SetLanguage(const SvxLanguageItem &aNewItem);
sal_Int32 GetScrollbarWidth();