summaryrefslogtreecommitdiff
path: root/include/svtools/editbrowsebox.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-26 15:19:06 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:35 +0200
commit0ecf6afbd104b53836c7a4d45fbc2a6ce1e356e0 (patch)
treea1253c850347f9df39254fe9cf82b6ebf39d73f0 /include/svtools/editbrowsebox.hxx
parentc353caee1c86476d98cd483f963f63c4195975f4 (diff)
loplugin: cstylecast
Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
Diffstat (limited to 'include/svtools/editbrowsebox.hxx')
-rw-r--r--include/svtools/editbrowsebox.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx
index db10afd92f49..cb696925e260 100644
--- a/include/svtools/editbrowsebox.hxx
+++ b/include/svtools/editbrowsebox.hxx
@@ -27,6 +27,7 @@
#include <vcl/window.hxx>
#include <vcl/combobox.hxx>
#include <vcl/lstbox.hxx>
+#include <vcl/spinfld.hxx>
#include <vcl/button.hxx>
#include <svtools/brwbox.hxx>
@@ -256,7 +257,8 @@ namespace svt
public:
TYPEINFO_OVERRIDE();
SpinCellController(SpinField* pSpinField);
- SpinField& GetSpinWindow() const {return (SpinField &)GetWindow();}
+ const SpinField& GetSpinWindow() const { return static_cast<const SpinField &>(GetWindow()); }
+ SpinField& GetSpinWindow() { return static_cast<SpinField &>(GetWindow()); }
virtual void SetModified() SAL_OVERRIDE;
virtual bool IsModified() const SAL_OVERRIDE;
@@ -342,7 +344,7 @@ namespace svt
TYPEINFO_OVERRIDE();
ComboBoxCellController(ComboBoxControl* pParent);
- ComboBoxControl& GetComboBox() const {return (ComboBoxControl &)GetWindow();}
+ ComboBoxControl& GetComboBox() const { return static_cast<ComboBoxControl &>(GetWindow()); }
virtual bool IsModified() const SAL_OVERRIDE;
virtual void ClearModified() SAL_OVERRIDE;
@@ -375,7 +377,8 @@ namespace svt
TYPEINFO_OVERRIDE();
ListBoxCellController(ListBoxControl* pParent);
- ListBoxControl& GetListBox() const {return (ListBoxControl &)GetWindow();}
+ const ListBoxControl& GetListBox() const { return static_cast<const ListBoxControl &>(GetWindow()); }
+ ListBoxControl& GetListBox() { return static_cast<ListBoxControl &>(GetWindow()); }
virtual bool IsModified() const SAL_OVERRIDE;
virtual void ClearModified() SAL_OVERRIDE;