[Libreoffice-commits] core.git: sc/source

Stephan Bergmann sbergman at redhat.com
Sat Mar 25 12:50:45 UTC 2017


 sc/source/ui/pagedlg/tptable.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7c5f01fcd8659d2c94f7d92beb261cb225787b0e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sat Mar 25 10:29:33 2017 +0100

    loplugin:redundantcast
    
    Change-Id: I61676e74413942ff5bde9ae8d376269a651bf93a
    Reviewed-on: https://gerrit.libreoffice.org/35676
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx
index fb1ad78ad644..5b3dbff4a43d 100644
--- a/sc/source/ui/pagedlg/tptable.cxx
+++ b/sc/source/ui/pagedlg/tptable.cxx
@@ -70,7 +70,7 @@ static bool lcl_PutBoolItem( sal_uInt16            nWhich,
 
 #define WAS_DEFAULT(w,s)    (SfxItemState::DEFAULT==(s).GetItemState((w)))
 #define GET_BOOL(sid,set)   static_cast<const SfxBoolItem&>((set).Get(GetWhich((sid)))).GetValue()
-#define GET_USHORT(sid,set) (sal_uInt16)static_cast<const SfxUInt16Item&>((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() ) \
                               == VOBJ_MODE_SHOW )
 // List box entries "Scaling mode"


More information about the Libreoffice-commits mailing list