diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 15:13:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 15:14:49 +0200 |
commit | 4544256d6e9fd502ec3cb94a834a8ca804b963d8 (patch) | |
tree | ecf9f15d3be57e6ac8bd0b7c1efb19c9aeb621e9 | |
parent | a633ffc88c438e4af436c0e66c21ffffa8a6f8c9 (diff) |
Replace macro with function
Change-Id: I005622c607a5a3dcd31b46f6e819546b7ece630b
-rw-r--r-- | sc/source/ui/pagedlg/tptable.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx index 1190ef82fbc7..90754c32d1cc 100644 --- a/sc/source/ui/pagedlg/tptable.cxx +++ b/sc/source/ui/pagedlg/tptable.cxx @@ -68,7 +68,13 @@ static bool lcl_PutBoolItem( sal_uInt16 nWhich, #define PAGENO_HDL LINK(this,ScTablePage,PageNoHdl) #define PAGEDIR_HDL LINK(this,ScTablePage,PageDirHdl) -#define WAS_DEFAULT(w,s) (SfxItemState::DEFAULT==(s).GetItemState((w))) +namespace { + +bool WAS_DEFAULT(sal_uInt16 w, SfxItemSet const & s) +{ return SfxItemState::DEFAULT==s.GetItemState(w); } + +} + #define GET_BOOL(sid,set) static_cast<const SfxBoolItem&>((set).Get(GetWhich((sid)))).GetValue() #define GET_USHORT(sid,set) static_cast<const SfxUInt16Item&>((set).Get(GetWhich((sid)))).GetValue() #define GET_SHOW(sid,set) ( ScVObjMode( static_cast<const ScViewObjectModeItem&>((set).Get(GetWhich((sid)))).GetValue() ) \ |