diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-07 11:27:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-07 11:27:26 +0200 |
commit | 5ecec388bb117426661c4e5f65cb84aeb245064c (patch) | |
tree | 50290ac5e55bad44f91f84498d1b107a0f835d00 /include/svx | |
parent | 58f837d2267e002a6a323b6b37c9e62eb6ca711b (diff) |
Consistency around SdrYesNoItem in svx/sxmsuitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."
Change-Id: I25002e5b6043baa8c93b180a03f475bea5906e4f
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/sxmsuitm.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/svx/sxmsuitm.hxx b/include/svx/sxmsuitm.hxx index c16a51f77e7b..9238913b8874 100644 --- a/include/svx/sxmsuitm.hxx +++ b/include/svx/sxmsuitm.hxx @@ -22,12 +22,9 @@ #include <svx/svddef.hxx> #include <svx/sdynitm.hxx> -// Include the unit of measure when displaying -class SdrMeasureShowUnitItem: public SdrYesNoItem { -public: - SdrMeasureShowUnitItem(bool bOn=false): SdrYesNoItem(SDRATTR_MEASURESHOWUNIT,bOn) {} - SdrMeasureShowUnitItem(SvStream& rIn): SdrYesNoItem(SDRATTR_MEASURESHOWUNIT,rIn) {} -}; +inline SdrYesNoItem makeSdrMeasureShowUnitItem(bool bOn) { + return SdrYesNoItem(SDRATTR_MEASURESHOWUNIT, bOn); +} #endif |