summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-07 11:27:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-07 11:27:26 +0200
commit5ecec388bb117426661c4e5f65cb84aeb245064c (patch)
tree50290ac5e55bad44f91f84498d1b107a0f835d00 /include
parentAvoid unnecessary illegal downcasts from SwFrmFmt to SwSectionFmt (diff)
downloadcore-5ecec388bb117426661c4e5f65cb84aeb245064c.tar.gz
core-5ecec388bb117426661c4e5f65cb84aeb245064c.zip
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')
-rw-r--r--include/svx/sxmsuitm.hxx9
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